import type { Vitest } from 'vitest/node';
/**
 * Cleanup options for a Vitest browser-mode run.
 */
export interface CleanupVitestBrowserRunOptions {
    label: string;
    timeoutMs: number;
}
/** Confirmed outcome consumed by controller-owned execution lanes. */
export interface VitestCleanupOutcome {
    /** Unconfirmed cleanup cannot safely release a long-lived execution lane. */
    status: 'graceful' | 'forced' | 'unconfirmed';
}
/**
 * Cleans up a Vitest browser run.
 *
 * A slow teardown is treated as best-effort: if cleanup does not finish before
 * `timeoutMs`, the run resolves with a warning rather than failing an otherwise
 * successful run. A genuine cleanup error (the cleanup promise rejecting) is
 * still propagated.
 *
 * Because the dev server outlives the run, a stuck teardown would otherwise
 * strand a headless browser per run, so the timeout also force-kills the
 * browser processes it captured before cleanup started.
 */
export declare function cleanupVitestBrowserRun(vitest: Vitest, options: CleanupVitestBrowserRunOptions): Promise<VitestCleanupOutcome>;
//# sourceMappingURL=vitest-browser-cleanup.d.ts.map