import { type DomVerdict } from './hydration-probe.js'; import type { ContentCompleteness } from '../types.js'; export declare const POST_GOTO_CAP_MS = 6000; export declare const NETWORKIDLE_SLICE_MS = 2000; export declare const STABILITY_TICK_MS = 400; export declare const STABILITY_TICKS_REQUIRED = 2; export declare const STABILITY_EPSILON_RATIO = 0.02; export declare const STABILITY_EPSILON_CHARS = 40; export type SettledBy = 'probe' | 'stability' | 'budget'; export interface ContentMetrics { textLen: number; nodes: number; } export interface SettleResult { settledBy: SettledBy; lastMetrics: ContentMetrics | null; stillGrowing: boolean; completeness: ContentCompleteness; } export declare function toCompleteness(settledBy: SettledBy, v: DomVerdict, stillGrowing: boolean): ContentCompleteness; interface SettlePageHandle { waitForLoadState(state: 'networkidle', opts: { timeout: number; }): Promise; waitForFunction(src: string, arg: undefined, opts: { timeout: number; }): Promise; evaluate(src: string): Promise; } export declare function settlePage(page: SettlePageHandle, opts: { budgetMs?: number; signal?: AbortSignal; url?: string; }): Promise; export {}; //# sourceMappingURL=settle.d.ts.map