import { type BrowserContextV1 } from "@agent-native/core/browser-context"; import { z } from "zod"; export declare const BROWSER_CHAT_MESSAGE_TYPE: "browser-context.v1"; export declare const BROWSER_CHAT_READY_MESSAGE_TYPE: "browser-chat.ready.v1"; export declare const BROWSER_CHAT_RESULT_MESSAGE_TYPE: "browser-chat.result.v1"; export declare const BROWSER_CHAT_NONCE_QUERY_PARAM: "browserChatNonce"; export declare const BROWSER_CHAT_PARENT_ORIGIN_QUERY_PARAM: "browserChatParentOrigin"; export declare const browserChatNonceSchema: z.ZodString; export declare const browserChatExtensionOriginSchema: z.ZodString; export declare const browserChatExtensionIdSchema: z.ZodString; export type BrowserChatMessageV1 = { type: typeof BROWSER_CHAT_MESSAGE_TYPE; nonce: string; intent: "stage"; context: BrowserContextV1; browserSession: BrowserPageSessionV1; } | { type: typeof BROWSER_CHAT_MESSAGE_TYPE; nonce: string; intent: "submit"; prompt: string; context: BrowserContextV1; browserSession: BrowserPageSessionV1; }; export interface BrowserPageSessionV1 { version: 1; handle: string; origin: string; title: string; } export declare function parseBrowserChatMessageV1(value: unknown, expectedNonce: string): BrowserChatMessageV1 | null; export declare function formatBrowserChatContext(context: BrowserContextV1, browserSession: BrowserPageSessionV1): string; //# sourceMappingURL=browser-chat-protocol.d.ts.map