export type FakeSearchResult = { title: string; url: string; snippet?: string }; export function duckDuckGoHtml(results: FakeSearchResult[]): string; export type FakeWeb = { base: string; searchUrl: string; url(path: string): string; requests: { method: string; path: string; body: string; at: number; ua?: string }[]; close(): Promise; }; export function startFakeWeb(opts?: { results?: Record; pages?: Record; busyTimes?: number; }): Promise;