import { type Page } from "playwright"; import { type DefaultTreeAdapterMap } from "parse5"; import { type PreserveManifest } from "./config.ts"; type Node = DefaultTreeAdapterMap["node"]; type Element = DefaultTreeAdapterMap["element"]; /** Dotted customer page slugs are pages; only recognized file suffixes are downloads. */ export declare const isDownloadPath: (path: string) => boolean; export declare function legacyRoutes(html: string, base: string): string[]; /** Read the legacy SSR JSON without executing inline script or trusting its code. */ export declare function legacyReactState(html: string): any | undefined; export declare function elements(node: Node): Element[]; /** Both captures use the same scroll/settling policy, including lazy-loaded images. */ export declare function settle(page: Page): Promise; export declare function capturePreservedSite(root: string, opts?: { signal?: AbortSignal; onLog?: (line: string) => void; diagnostic?: boolean; onlyPaths?: string[]; includeSourceErrors?: boolean; }): Promise; export {};