export type WebControlCommand = 'open' | 'revoke-all'; export declare const webControlPath: (dir?: string) => string; export interface WebControlServer { path: string; close(): Promise; } export declare function startWebControlServer(options: { dir?: string; onOpen(): void | Promise; onRevokeAll(): void | Promise; now?: () => number; rateLimit?: number; }): Promise; export declare function requestWebControl(command: WebControlCommand, path?: string, timeoutMs?: number): Promise;