export declare const TIKTOK_BROWSER_BRIDGE_VERSION = "normal-chrome-v1"; export declare const TIKTOK_BROWSER_LEASE_VERSION = "tiktok-browser-lease-v1"; export type TikTokBrowserLeaseStatus = { state: "available" | "owned" | "occupied"; commandPending: boolean; expiresInMs: number; }; export type BrowserCommand = { id: string; sessionId: string; action: "prepare" | "snapshot" | "advance" | "close" | "download-reference"; query?: string; navigate?: boolean; sourceUrl?: string; expiresAt: number; }; /** The paired website relays bounded commands. The extension never receives the Agent token. */ export declare class TikTokBrowserBridge { private timeoutMs; private now; private owner; private seenAt; private pending?; private lastAck; browserOpen: boolean; constructor(timeoutMs?: number, now?: () => number); ownedBy(clientId: string): boolean; status(clientId?: string): TikTokBrowserLeaseStatus; claim(clientId: string): void; release(clientId: string): boolean; assertOwner(clientId: string): void; poll(clientId: string): BrowserCommand | null; acknowledge(clientId: string, id: string, result: unknown, error?: string): void; request(sessionId: string, action: BrowserCommand["action"], options?: Pick): Promise; cancel(): void; }