import { TabBridge } from './tab-bridge.js'; export interface McpPageEntry { pageId: number; url?: string; title?: string; } export declare function normalizeTabUrl(url: string): string; export declare function checkExistingCloseAllowed(entries: McpPageEntry[], pageId: number, piOwnedUrls: ReadonlySet): { ok: true; } | { ok: false; reason: string; }; export interface ExistingFlowDeps { bridge: TabBridge; listPages: () => Promise; requestTab?: (url: string) => string; waitForTab?: (token: string, options?: { timeoutMs?: number; signal?: AbortSignal; }) => Promise<{ tabId?: number; error?: string; }>; } export interface ExistingOpenResult { token: string; tabId?: number; pageId?: number; } export declare function parseMcpPageList(result: unknown): McpPageEntry[]; export declare function correlateNewPage(before: McpPageEntry[], after: McpPageEntry[]): number | undefined; export declare function openExistingPage(url: string, deps: ExistingFlowDeps, options?: { timeoutMs?: number; signal?: AbortSignal; }): Promise; //# sourceMappingURL=existing-flow.d.ts.map