import type { Page } from "playwright-core";
export declare const DEFAULT_OUTLINE_MAX_CHARS = 6000;
export declare const OUTLINE_PREVIEW_CHARS = 120;
export declare const OUTLINE_MAX_LANDMARKS = 12;
export declare const OUTLINE_MAX_HEADINGS = 24;
export declare const OUTLINE_MIN_GROUP_SIZE = 4;
export declare const OUTLINE_MAX_GROUPS = 8;
export declare const OUTLINE_GROUP_SAMPLE_SIZE = 3;
export declare const OUTLINE_MAX_CONTROLS = 24;
export declare const OUTLINE_SELECTOR_PATH_MAX_DEPTH = 5;
export interface OutlineItem {
    kind: string;
    label: string;
    selector: string;
    preview?: string;
    stable?: boolean;
}
export interface OutlineGroup {
    kind: string;
    count: number;
    selector: string;
    sampleSelector?: string;
    samples: string[];
}
export interface RawPageOutline {
    landmarks: OutlineItem[];
    headings: OutlineItem[];
    groups: OutlineGroup[];
    controls: OutlineItem[];
}
export interface PageOutlineOptions {
    selector?: string;
    maxChars?: number;
}
export declare function collectPageOutline(page: Page, opts?: PageOutlineOptions): Promise<string>;
export declare function formatPageOutline(raw: RawPageOutline, opts?: PageOutlineOptions): string;
