/** The largest icon `resolveFavicon` keeps by default. */ export declare const MAX_FAVICON_BYTES: number; export interface Favicon { data: Uint8Array; mime: string; } export interface FaviconLink { href: string; /** The largest side its `sizes` names, `Infinity` for `any`, 0 when it names none. */ size: number; } export interface ResolveFaviconOptions { headers?: HeadersInit | undefined; /** Per request, 10 s by default. */ timeout?: number | undefined; maxBytes?: number | undefined; } /** The icon links of an HTML page, mask and fluid icons left out. */ export declare function parseFaviconLinks(html: string): FaviconLink[]; /** An SVG first, then the smallest of 32 px or more, then the largest with a size, then the first. */ export declare function pickFaviconLink(links: FaviconLink[]): FaviconLink | undefined; /** The icon a page declares, else its origin's /favicon.ico; null when neither is an image of at most `maxBytes`, or one a redirect to another host gave. */ export declare function resolveFavicon(pageUrl: string, { headers, timeout, maxBytes }?: ResolveFaviconOptions): Promise; //# sourceMappingURL=favicon.d.ts.map