export default function optimize(html: string, config: any): Promise;