import type { Page } from "playwright-core";
export interface BuiltinPageCleanupRecipe {
    skillName: string;
    stage: string;
    hosts: string[];
    script: string;
}
export interface BuiltinPageCleanupRun {
    skillName: string;
    stage: string;
    ok: boolean;
    result?: unknown;
    error?: string;
}
export declare function parseCleanupRecipesFromSkill(content: string, fallbackName: string): BuiltinPageCleanupRecipe[];
export declare function loadBuiltinPageCleanupRecipes(): BuiltinPageCleanupRecipe[];
export declare function cleanupRunHandled(run: BuiltinPageCleanupRun): boolean;
export declare function selectBuiltinPageCleanupRecipes(pageUrl: string, stage: string): BuiltinPageCleanupRecipe[];
export declare function runBuiltinPageCleanups(page: Page, stage: string): Promise<BuiltinPageCleanupRun[]>;
