import { buildPageDoc } from "./page-mapper.ts"; export declare function checkUrl(raw: string, allowLocalhost: boolean): { url: URL; } | { error: string; }; export type ScopeResult = ReturnType; /** Fetch a page and map it. Throws with a readable message; it is a CLI's whole error surface. */ export declare function scopeUrl(url: URL): Promise; /** The half with no network in it, so the mapping can be tested against fixtures. */ export declare function scopeHtml(html: string, url: URL): ScopeResult; export declare function report(url: URL, result: ScopeResult, includePage: boolean): string;