import { z } from "zod/v4"; import Browserbase from "@browserbasehq/sdk"; //#region ../protocol/json-rpc/wire-casing.d.ts type WireCasingOptions = { /** API-side container keys whose nested, user-controlled keys must retain their casing. */readonly opaqueKeys?: readonly string[]; /** * API-side container keys whose nested fields use normal protocol casing, * even when the key is opaque by default. */ readonly transformKeys?: readonly string[]; }; //#endregion //#region ../protocol/json-rpc/schemas.d.ts declare const JSONRPCRequestSchema: z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; id: z.ZodInt; method: z.ZodString; params: z.ZodOptional, z.ZodRecord]>>; traceparent: z.ZodOptional; tracestate: z.ZodOptional; }, z.core.$strict>; declare const JSONRPCResponseSchema: z.ZodUnion; result: z.ZodJSONSchema; id: z.ZodInt; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; error: z.ZodObject<{ code: z.ZodInt; message: z.ZodString; data: z.ZodOptional; }, z.core.$strict>; id: z.ZodUnion; }, z.core.$strict>]>; declare const JSONRPCMessageSchema: z.ZodUnion; id: z.ZodInt; method: z.ZodString; params: z.ZodOptional, z.ZodRecord]>>; traceparent: z.ZodOptional; tracestate: z.ZodOptional; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; method: z.ZodString; params: z.ZodOptional, z.ZodRecord]>>; }, z.core.$strict>, z.ZodUnion; result: z.ZodJSONSchema; id: z.ZodInt; }, z.core.$strict>, z.ZodObject<{ jsonrpc: z.ZodLiteral<"2.0">; error: z.ZodObject<{ code: z.ZodInt; message: z.ZodString; data: z.ZodOptional; }, z.core.$strict>; id: z.ZodUnion; }, z.core.$strict>]>]>; type RPCMethod = { name: string; params: z.ZodType; result: z.ZodType; paramsWire?: WireCasingOptions; resultWire?: WireCasingOptions; }; //#endregion //#region ../protocol/schema-registry.d.ts declare const StagehandMethods: { readonly stagehandInit: { readonly name: "stagehand.init"; readonly params: z.ZodObject<{ protocolVersion: z.ZodString; clientInfo: z.ZodObject<{ name: z.ZodString; version: z.ZodString; }, z.core.$strict>; browserCdpUrl: z.ZodOptional; apiKey: z.ZodOptional; apiUrl: z.ZodOptional; browser: z.ZodOptional>; }, z.core.$strict>>; model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>, z.ZodObject<{ source: z.ZodLiteral<"client">; }, z.core.$strict>]>>; telemetry: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>>; logLevel: z.ZodDefault>; systemPrompt: z.ZodOptional; selfHeal: z.ZodOptional; domSettleTimeoutMs: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strict>; readonly result: z.ZodObject<{ initialized: z.ZodLiteral; pages: z.ZodArray; title: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; }; readonly stagehandClose: { readonly name: "stagehand.close"; readonly params: z.ZodObject<{}, z.core.$strict>; readonly result: z.ZodObject<{ closed: z.ZodLiteral; }, z.core.$strict>; }; readonly stagehandAct: { readonly name: "stagehand.act"; readonly params: z.ZodObject<{ pageId: z.ZodString; instruction: z.ZodUnion; arguments: z.ZodOptional>; }, z.core.$strict>]>; options: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; variables: z.ZodOptional, z.ZodObject<{ value: z.ZodUnion; description: z.ZodOptional; }, z.core.$strict>]>>>; timeout: z.ZodOptional; locator: z.ZodOptional; }, z.core.$strict>>; ignoreLocators: z.ZodOptional; }, z.core.$strict>>>; cache: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ data: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; actionDescription: z.ZodString; actions: z.ZodArray; arguments: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; readonly resultWire: { readonly transformKeys: readonly ["data"]; }; }; readonly stagehandObserve: { readonly name: "stagehand.observe"; readonly params: z.ZodObject<{ pageId: z.ZodString; instruction: z.ZodOptional; options: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; variables: z.ZodOptional, z.ZodObject<{ value: z.ZodUnion; description: z.ZodOptional; }, z.core.$strict>]>>>; timeout: z.ZodOptional; locator: z.ZodOptional; }, z.core.$strict>>; ignoreLocators: z.ZodOptional; }, z.core.$strict>>>; cache: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ data: z.ZodArray; arguments: z.ZodOptional>; }, z.core.$strict>>; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; readonly resultWire: { readonly transformKeys: readonly ["data"]; }; }; readonly stagehandExtract: { readonly name: "stagehand.extract"; readonly params: z.ZodObject<{ pageId: z.ZodString; instruction: z.ZodString; schema: z.ZodDefault; options: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; timeout: z.ZodOptional; locator: z.ZodOptional; }, z.core.$strict>>; ignoreLocators: z.ZodOptional; }, z.core.$strict>>>; screenshot: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ data: z.ZodJSONSchema; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["schema"]; }; readonly resultWire: { readonly opaqueKeys: readonly ["data"]; }; }; readonly stagehandMetrics: { readonly name: "stagehand.metrics"; readonly params: z.ZodObject<{}, z.core.$strict>; readonly result: z.ZodObject<{ actPromptTokens: z.ZodNumber; actCompletionTokens: z.ZodNumber; actReasoningTokens: z.ZodNumber; actCachedInputTokens: z.ZodNumber; actInferenceTimeMs: z.ZodNumber; extractPromptTokens: z.ZodNumber; extractCompletionTokens: z.ZodNumber; extractReasoningTokens: z.ZodNumber; extractCachedInputTokens: z.ZodNumber; extractInferenceTimeMs: z.ZodNumber; observePromptTokens: z.ZodNumber; observeCompletionTokens: z.ZodNumber; observeReasoningTokens: z.ZodNumber; observeCachedInputTokens: z.ZodNumber; observeInferenceTimeMs: z.ZodNumber; totalPromptTokens: z.ZodNumber; totalCompletionTokens: z.ZodNumber; totalReasoningTokens: z.ZodNumber; totalCachedInputTokens: z.ZodNumber; totalInferenceTimeMs: z.ZodNumber; }, z.core.$strict>; }; readonly stagehandCallbackBatch: { readonly name: "stagehand.callback_batch"; readonly params: z.ZodObject<{ callbackSource: z.ZodString; input: z.ZodOptional; options: z.ZodObject<{ pageId: z.ZodOptional; timeout: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; readonly result: z.ZodObject<{ value: z.ZodOptional; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["input"]; }; readonly resultWire: { readonly opaqueKeys: readonly ["value"]; }; }; readonly llmGenerate: { readonly name: "llm.generate"; readonly params: z.ZodUnion; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; responseFormat: z.ZodObject<{ type: z.ZodLiteral<"json_schema">; name: z.ZodString; description: z.ZodOptional; schema: z.ZodJSONSchema; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; tools: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strict>>>; description: z.ZodOptional; inputSchema: z.ZodObject<{ $schema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>; execution: z.ZodOptional>; }, z.core.$strict>>; outputSchema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; toolChoice: z.ZodOptional>; }, z.core.$strict>>; responseFormat: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>]>; readonly result: z.ZodDiscriminatedUnion<[z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"text">; }, z.core.$strict>, z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"json_schema">; structuredContent: z.ZodJSONSchema; }, z.core.$strict>], "outputFormat">; readonly paramsWire: { readonly opaqueKeys: readonly ["inputSchema", "outputSchema", "input", "structuredContent", "schema"]; }; readonly resultWire: { readonly opaqueKeys: readonly ["structuredContent"]; }; }; readonly contextPages: { readonly name: "context.pages"; readonly params: z.ZodObject<{}, z.core.$strict>; readonly result: z.ZodArray; title: z.ZodOptional; }, z.core.$strict>>; }; readonly contextNewPage: { readonly name: "context.new_page"; readonly params: z.ZodObject<{ url: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; }; readonly contextActivePage: { readonly name: "context.active_page"; readonly params: z.ZodObject<{}, z.core.$strict>; readonly result: z.ZodNullable; title: z.ZodOptional; }, z.core.$strict>>; }; readonly contextSetActivePage: { readonly name: "context.set_active_page"; readonly params: z.ZodObject<{ pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextAddInitScript: { readonly name: "context.add_init_script"; readonly params: z.ZodObject<{ source: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextSetExtraHTTPHeaders: { readonly name: "context.set_extra_http_headers"; readonly params: z.ZodObject<{ headers: z.ZodRecord; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly contextGetDomainPolicy: { readonly name: "context.get_domain_policy"; readonly params: z.ZodObject<{}, z.core.$strict>; readonly result: z.ZodNullable>; blockedDomains: z.ZodOptional>; }, z.core.$strict>>; }; readonly contextSetDomainPolicy: { readonly name: "context.set_domain_policy"; readonly params: z.ZodObject<{ policy: z.ZodNullable>; blockedDomains: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextCookies: { readonly name: "context.cookies"; readonly params: z.ZodObject<{ urls: z.ZodOptional]>>; }, z.core.$strict>; readonly result: z.ZodArray; }, z.core.$strict>>; }; readonly contextAddCookies: { readonly name: "context.add_cookies"; readonly params: z.ZodObject<{ cookies: z.ZodArray; domain: z.ZodOptional; path: z.ZodOptional; expires: z.ZodOptional; httpOnly: z.ZodOptional; secure: z.ZodOptional; sameSite: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClearCookies: { readonly name: "context.clear_cookies"; readonly params: z.ZodObject<{ options: z.ZodOptional; }, z.core.$strict>]>>; domain: z.ZodOptional; }, z.core.$strict>]>>; path: z.ZodOptional; }, z.core.$strict>]>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClipboardReadText: { readonly name: "context.clipboard_read_text"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodString; }; readonly contextClipboardWriteText: { readonly name: "context.clipboard_write_text"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; text: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClipboardClear: { readonly name: "context.clipboard_clear"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClipboardPaste: { readonly name: "context.clipboard_paste"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; shortcut: z.ZodOptional>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClipboardCopy: { readonly name: "context.clipboard_copy"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly contextClipboardCut: { readonly name: "context.clipboard_cut"; readonly params: z.ZodObject<{ pageId: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageGoto: { readonly name: "page.goto"; readonly params: z.ZodObject<{ pageId: z.ZodString; url: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ page: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; response: z.ZodNullable; fromServiceWorker: z.ZodBoolean; }, z.core.$strict>>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly pageUrl: { readonly name: "page.url"; readonly params: z.ZodObject<{ pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly pageTitle: { readonly name: "page.title"; readonly params: z.ZodObject<{ pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly pageClose: { readonly name: "page.close"; readonly params: z.ZodObject<{ pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ closed: z.ZodLiteral; }, z.core.$strict>; }; readonly pageReload: { readonly name: "page.reload"; readonly params: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; ignoreCache: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ page: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; response: z.ZodNullable; fromServiceWorker: z.ZodBoolean; }, z.core.$strict>>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly pageGoBack: { readonly name: "page.go_back"; readonly params: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ page: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; response: z.ZodNullable; fromServiceWorker: z.ZodBoolean; }, z.core.$strict>>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly pageGoForward: { readonly name: "page.go_forward"; readonly params: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ page: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; response: z.ZodNullable; fromServiceWorker: z.ZodBoolean; }, z.core.$strict>>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly pageClick: { readonly name: "page.click"; readonly params: z.ZodObject<{ pageId: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; options: z.ZodOptional>; clickCount: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageHover: { readonly name: "page.hover"; readonly params: z.ZodObject<{ pageId: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageScroll: { readonly name: "page.scroll"; readonly params: z.ZodObject<{ pageId: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; deltaX: z.ZodNumber; deltaY: z.ZodNumber; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageDragAndDrop: { readonly name: "page.drag_and_drop"; readonly params: z.ZodObject<{ pageId: z.ZodString; fromX: z.ZodNumber; fromY: z.ZodNumber; toX: z.ZodNumber; toY: z.ZodNumber; options: z.ZodOptional>; steps: z.ZodOptional; delay: z.ZodOptional; route: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageType: { readonly name: "page.type"; readonly params: z.ZodObject<{ pageId: z.ZodString; text: z.ZodString; options: z.ZodOptional; withMistakes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageKeyPress: { readonly name: "page.key_press"; readonly params: z.ZodObject<{ pageId: z.ZodString; key: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageEvaluate: { readonly name: "page.evaluate"; readonly params: z.ZodObject<{ pageId: z.ZodString; expression: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ value: z.ZodJSONSchema; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["value"]; }; }; readonly pageAddInitScript: { readonly name: "page.add_init_script"; readonly params: z.ZodObject<{ pageId: z.ZodString; source: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageOn: { readonly name: "page.on"; readonly params: z.ZodObject<{ pageId: z.ZodString; subscriptionId: z.ZodString; event: z.ZodEnum<{ console: "console"; }>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageOff: { readonly name: "page.off"; readonly params: z.ZodObject<{ subscriptionId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageSetExtraHTTPHeaders: { readonly name: "page.set_extra_http_headers"; readonly params: z.ZodObject<{ pageId: z.ZodString; headers: z.ZodRecord; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly pageScreenshot: { readonly name: "page.screenshot"; readonly params: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional>; caret: z.ZodOptional>; clip: z.ZodOptional>; fullPage: z.ZodOptional; mask: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>>>; maskColor: z.ZodOptional; omitBackground: z.ZodOptional; quality: z.ZodOptional; scale: z.ZodOptional>; style: z.ZodOptional; timeout: z.ZodOptional; type: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ data: z.ZodBase64; }, z.core.$strict>; }; readonly pageSnapshot: { readonly name: "page.snapshot"; readonly params: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ formattedTree: z.ZodString; xpathMap: z.ZodRecord; urlMap: z.ZodRecord; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["xpathMap", "urlMap"]; }; }; readonly pageSetViewportSize: { readonly name: "page.set_viewport_size"; readonly params: z.ZodObject<{ pageId: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageWaitForLoadState: { readonly name: "page.wait_for_load_state"; readonly params: z.ZodObject<{ pageId: z.ZodString; state: z.ZodEnum<{ load: "load"; domcontentloaded: "domcontentloaded"; networkidle: "networkidle"; }>; timeout: z.ZodOptional; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageWaitForTimeout: { readonly name: "page.wait_for_timeout"; readonly params: z.ZodObject<{ pageId: z.ZodString; ms: z.ZodNumber; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly pageWaitForSelector: { readonly name: "page.wait_for_selector"; readonly params: z.ZodObject<{ pageId: z.ZodString; selector: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; pierceShadow: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ matched: z.ZodBoolean; }, z.core.$strict>; }; readonly pageWebMCPTools: { readonly name: "page.webmcp_tools"; readonly params: z.ZodObject<{ options: z.ZodOptional; }, z.core.$strict>>; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ tools: z.ZodArray>; annotations: z.ZodOptional; untrustedContent: z.ZodOptional; autosubmit: z.ZodOptional; }, z.core.$strict>>; frameId: z.ZodString; backendNodeId: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["inputSchema"]; }; }; readonly pageWebMCPInvokeTool: { readonly name: "page.webmcp_invoke_tool"; readonly params: z.ZodObject<{ input: z.ZodDefault>; frameId: z.ZodString; toolName: z.ZodString; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ invocationId: z.ZodString; toolName: z.ZodString; frameId: z.ZodString; input: z.ZodRecord; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["input"]; }; readonly resultWire: { readonly opaqueKeys: readonly ["input"]; }; }; readonly pageWebMCPInvocationResult: { readonly name: "page.webmcp_invocation_result"; readonly params: z.ZodObject<{ invocationId: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ invocationId: z.ZodString; status: z.ZodEnum<{ Completed: "Completed"; Canceled: "Canceled"; Error: "Error"; }>; output: z.ZodOptional; errorText: z.ZodOptional; exception: z.ZodOptional>; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["output", "exception"]; }; }; readonly pageWebMCPCancelInvocation: { readonly name: "page.webmcp_cancel_invocation"; readonly params: z.ZodObject<{ invocationId: z.ZodString; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ ok: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorClick: { readonly name: "locator.click"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional>; clickCount: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ clicked: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorFill: { readonly name: "locator.fill"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; value: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ filled: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorHover: { readonly name: "locator.hover"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ hovered: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorCount: { readonly name: "locator.count"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodNumber; }; readonly locatorIsChecked: { readonly name: "locator.is_checked"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodBoolean; }; readonly locatorInputValue: { readonly name: "locator.input_value"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly locatorIsVisible: { readonly name: "locator.is_visible"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodBoolean; }; readonly locatorInnerText: { readonly name: "locator.inner_text"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly locatorInnerHtml: { readonly name: "locator.inner_html"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly locatorTextContent: { readonly name: "locator.text_content"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodString; }; readonly locatorScrollTo: { readonly name: "locator.scroll_to"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; percent: z.ZodUnion; }, z.core.$strict>; readonly result: z.ZodObject<{ scrolled: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorCentroid: { readonly name: "locator.centroid"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strict>; }; readonly locatorHighlight: { readonly name: "locator.highlight"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional; borderColor: z.ZodOptional; }, z.core.$strict>>; contentColor: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ highlighted: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorSendClickEvent: { readonly name: "locator.send_click_event"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional; cancelable: z.ZodOptional; composed: z.ZodOptional; detail: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ clicked: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorType: { readonly name: "locator.type"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; text: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ typed: z.ZodLiteral; }, z.core.$strict>; }; readonly locatorSelectOption: { readonly name: "locator.select_option"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; values: z.ZodUnion]>; }, z.core.$strict>; readonly result: z.ZodArray; }; readonly locatorSetInputFiles: { readonly name: "locator.set_input_files"; readonly params: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; files: z.ZodArray; data: z.ZodBase64; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; readonly result: z.ZodObject<{ set: z.ZodLiteral; }, z.core.$strict>; }; readonly responseBody: { readonly name: "response.body"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ body: z.ZodString; base64Encoded: z.ZodLiteral; }, z.core.$strict>; }; readonly responseAllHeaders: { readonly name: "response.all_headers"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ headers: z.ZodRecord; }, z.core.$strict>; readonly resultWire: { readonly opaqueKeys: readonly ["headers"]; }; }; readonly responseHeadersArray: { readonly name: "response.headers_array"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ headers: z.ZodArray>; }, z.core.$strict>; }; readonly responseSecurityDetails: { readonly name: "response.security_details"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ value: z.ZodNullable>; }, z.core.$strict>; }; readonly responseServerAddr: { readonly name: "response.server_addr"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ value: z.ZodNullable>; }, z.core.$strict>; }; readonly responseFinished: { readonly name: "response.finished"; readonly params: z.ZodObject<{ responseId: z.ZodString; }, z.core.$strict>; readonly result: z.ZodObject<{ error: z.ZodNullable>; }, z.core.$strict>; }; }; declare const StagehandNotifications: { readonly log: { readonly name: "stagehand.log"; readonly params: z.ZodObject<{ level: z.ZodEnum<{ error: "error"; warn: "warn"; info: "info"; debug: "debug"; }>; message: z.ZodString; data: z.ZodRecord; }, z.core.$strict>; readonly paramsWire: undefined; }; readonly pageCDPEvent: { readonly name: "page.cdp_event"; readonly params: z.ZodObject<{ subscriptionId: z.ZodString; event: z.ZodObject<{ pageId: z.ZodString; method: z.ZodEnum<{ "Runtime.consoleAPICalled": "Runtime.consoleAPICalled"; }>; params: z.ZodRecord; sessionId: z.ZodString; targetId: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; readonly paramsWire: { readonly opaqueKeys: readonly ["params"]; }; }; }; type RegisteredNotificationSchema = { [Key in keyof typeof StagehandNotifications]: z.ZodType<{ jsonrpc: "2.0"; method: (typeof StagehandNotifications)[Key]["name"]; params: z.output<(typeof StagehandNotifications)[Key]["params"]>; }> }[keyof typeof StagehandNotifications]; declare const StagehandRpcNotificationSchema: z.ZodUnion<[RegisteredNotificationSchema, ...RegisteredNotificationSchema[]]>; //#endregion //#region ../protocol/schemas.d.ts declare const ModelNameSchema: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; declare const CookieSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; domain: z.ZodString; path: z.ZodString; expires: z.ZodNumber; httpOnly: z.ZodBoolean; secure: z.ZodBoolean; sameSite: z.ZodEnum<{ Strict: "Strict"; Lax: "Lax"; None: "None"; }>; }, z.core.$strict>; declare const CookieParamSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; url: z.ZodOptional; domain: z.ZodOptional; path: z.ZodOptional; expires: z.ZodOptional; httpOnly: z.ZodOptional; secure: z.ZodOptional; sameSite: z.ZodOptional>; }, z.core.$strict>; declare const DomainPolicySchema: z.ZodObject<{ allowedDomains: z.ZodOptional>; blockedDomains: z.ZodOptional>; }, z.core.$strict>; declare const VariablesSchema: z.ZodRecord, z.ZodObject<{ value: z.ZodUnion; description: z.ZodOptional; }, z.core.$strict>]>>; declare const StagehandMetricsSchema: z.ZodObject<{ actPromptTokens: z.ZodNumber; actCompletionTokens: z.ZodNumber; actReasoningTokens: z.ZodNumber; actCachedInputTokens: z.ZodNumber; actInferenceTimeMs: z.ZodNumber; extractPromptTokens: z.ZodNumber; extractCompletionTokens: z.ZodNumber; extractReasoningTokens: z.ZodNumber; extractCachedInputTokens: z.ZodNumber; extractInferenceTimeMs: z.ZodNumber; observePromptTokens: z.ZodNumber; observeCompletionTokens: z.ZodNumber; observeReasoningTokens: z.ZodNumber; observeCachedInputTokens: z.ZodNumber; observeInferenceTimeMs: z.ZodNumber; totalPromptTokens: z.ZodNumber; totalCompletionTokens: z.ZodNumber; totalReasoningTokens: z.ZodNumber; totalCachedInputTokens: z.ZodNumber; totalInferenceTimeMs: z.ZodNumber; }, z.core.$strict>; declare const CacheStatusSchema: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; /** Server-side caching configuration: a boolean toggle, or an object enabling * caching with an optional hit-count threshold (how many identical results * must be seen before the cache serves a hit; overrides the project's * configured threshold). */ declare const CachingSchema: z.ZodUnion; }, z.core.$strict>]>; declare const ModelConfigSchema: z.ZodObject<{ apiKey: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>; /** Action object returned by observe and used by act */ declare const ActionSchema: z.ZodObject<{ selector: z.ZodString; description: z.ZodString; method: z.ZodOptional; arguments: z.ZodOptional>; }, z.core.$strict>; declare const StagehandResultUsageSchema: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; /** LLM tokens avoided by serving a request from the cache. */ declare const CacheTokenSavingsSchema: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>; /** * Cache observability for one act/observe/extract call. Always present, like * `usage`: DISABLED says no lookup ran, and otherwise it is self-explaining — * a miss carries why it missed, a hit carries how established the entry is. */ declare const CacheMetadataSchema: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; declare const StagehandResultMetadataSchema: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; /** Inner act result data */ declare const ActResultDataSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; actionDescription: z.ZodString; actions: z.ZodArray; arguments: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; declare const ActResultSchema: z.ZodObject<{ data: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; actionDescription: z.ZodString; actions: z.ZodArray; arguments: z.ZodOptional>; }, z.core.$strict>>; }, z.core.$strict>; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; declare const ExtractResultSchema: z.ZodObject<{ data: z.ZodJSONSchema; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; declare const ObserveResultSchema: z.ZodObject<{ data: z.ZodArray; arguments: z.ZodOptional>; }, z.core.$strict>>; metadata: z.ZodObject<{ actionId: z.ZodOptional; cache: z.ZodObject<{ status: z.ZodEnum<{ HIT: "HIT"; MISS: "MISS"; DISABLED: "DISABLED"; }>; count: z.ZodOptional; threshold: z.ZodOptional; missReason: z.ZodOptional; tokensSaved: z.ZodOptional; outputTokens: z.ZodDefault; totalTokens: z.ZodDefault; }, z.core.$strict>>; }, z.core.$strict>; usage: z.ZodObject<{ inputTokens: z.ZodDefault; outputTokens: z.ZodDefault; reasoningTokens: z.ZodDefault; cachedInputTokens: z.ZodDefault; inferenceTimeMs: z.ZodDefault; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; declare const LoadStateSchema: z.ZodEnum<{ load: "load"; domcontentloaded: "domcontentloaded"; networkidle: "networkidle"; }>; declare const PageNavigationOptionsSchema: z.ZodObject<{ waitUntil: z.ZodOptional>; timeout: z.ZodOptional; }, z.core.$strict>; declare const PageScreenshotClipSchema: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strict>; declare const SnapshotResultSchema: z.ZodObject<{ formattedTree: z.ZodString; xpathMap: z.ZodRecord; urlMap: z.ZodRecord; }, z.core.$strict>; declare const PageSnapshotOptionsSchema: z.ZodObject<{ includeIframes: z.ZodOptional; }, z.core.$strict>; declare const PageRefSchema: z.ZodObject<{ pageId: z.ZodString; url: z.ZodOptional; title: z.ZodOptional; }, z.core.$strict>; declare const NavigationHeaderSchema: z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, z.core.$strict>; declare const NavigationSecurityDetailsSchema: z.ZodObject<{ issuer: z.ZodString; protocol: z.ZodString; subjectName: z.ZodString; validFrom: z.ZodNumber; validTo: z.ZodNumber; }, z.core.$strict>; declare const NavigationServerAddrSchema: z.ZodObject<{ ipAddress: z.ZodString; port: z.ZodNumber; }, z.core.$strict>; declare const NavigationResponseDescriptorSchema: z.ZodObject<{ responseId: z.ZodString; url: z.ZodString; status: z.ZodNumber; statusText: z.ZodString; headers: z.ZodRecord; fromServiceWorker: z.ZodBoolean; }, z.core.$strict>; declare const PageEventNameSchema: z.ZodEnum<{ console: "console"; }>; declare const PageCDPEventSchema: z.ZodObject<{ pageId: z.ZodString; method: z.ZodEnum<{ "Runtime.consoleAPICalled": "Runtime.consoleAPICalled"; }>; params: z.ZodRecord; sessionId: z.ZodString; targetId: z.ZodString; }, z.core.$strict>; declare const WebMCPAnnotationSchema: z.ZodObject<{ readOnly: z.ZodOptional; untrustedContent: z.ZodOptional; autosubmit: z.ZodOptional; }, z.core.$strict>; declare const WebMCPToolDescriptorSchema: z.ZodObject<{ name: z.ZodString; description: z.ZodString; inputSchema: z.ZodOptional>; annotations: z.ZodOptional; untrustedContent: z.ZodOptional; autosubmit: z.ZodOptional; }, z.core.$strict>>; frameId: z.ZodString; backendNodeId: z.ZodOptional; }, z.core.$strict>; declare const WebMCPInvocationDescriptorSchema: z.ZodObject<{ invocationId: z.ZodString; toolName: z.ZodString; frameId: z.ZodString; input: z.ZodRecord; }, z.core.$strict>; declare const WebMCPInvocationStatusSchema: z.ZodEnum<{ Completed: "Completed"; Canceled: "Canceled"; Error: "Error"; }>; declare const WebMCPRemoteObjectSchema: z.ZodRecord; declare const WebMCPToolResponseSchema: z.ZodObject<{ invocationId: z.ZodString; status: z.ZodEnum<{ Completed: "Completed"; Canceled: "Canceled"; Error: "Error"; }>; output: z.ZodOptional; errorText: z.ZodOptional; exception: z.ZodOptional>; }, z.core.$strict>; declare const LocatorDescriptorSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>; declare const ImplementationInfoSchema: z.ZodObject<{ name: z.ZodString; version: z.ZodString; }, z.core.$strict>; declare const DefaultExtractDataSchema: z.ZodObject<{ extraction: z.ZodString; }, z.core.$strict>; declare const ContextSetExtraHTTPHeadersParamsSchema: z.ZodObject<{ headers: z.ZodRecord; }, z.core.$strict>; declare const ContextClipboardPasteParamsSchema: z.ZodObject<{ pageId: z.ZodOptional; shortcut: z.ZodOptional>; }, z.core.$strict>; declare const MouseButtonSchema: z.ZodEnum<{ left: "left"; right: "right"; middle: "middle"; }>; declare const PageReloadParamsSchema: z.ZodObject<{ pageId: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; ignoreCache: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const PageClickParamsSchema: z.ZodObject<{ pageId: z.ZodString; x: z.ZodNumber; y: z.ZodNumber; options: z.ZodOptional>; clickCount: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const PageDragAndDropRoutePointSchema: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strict>; declare const PageDragAndDropParamsSchema: z.ZodObject<{ pageId: z.ZodString; fromX: z.ZodNumber; fromY: z.ZodNumber; toX: z.ZodNumber; toY: z.ZodNumber; options: z.ZodOptional>; steps: z.ZodOptional; delay: z.ZodOptional; route: z.ZodOptional>>; }, z.core.$strict>>; }, z.core.$strict>; declare const PageTypeParamsSchema: z.ZodObject<{ pageId: z.ZodString; text: z.ZodString; options: z.ZodOptional; withMistakes: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const PageKeyPressParamsSchema: z.ZodObject<{ pageId: z.ZodString; key: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const PageSetExtraHTTPHeadersParamsSchema: z.ZodObject<{ pageId: z.ZodString; headers: z.ZodRecord; }, z.core.$strict>; declare const PageScreenshotOptionsSchema: z.ZodObject<{ animations: z.ZodOptional>; caret: z.ZodOptional>; clip: z.ZodOptional>; fullPage: z.ZodOptional; mask: z.ZodOptional; pageId: z.ZodString; }, z.core.$strict>>>; maskColor: z.ZodOptional; omitBackground: z.ZodOptional; quality: z.ZodOptional; scale: z.ZodOptional>; style: z.ZodOptional; timeout: z.ZodOptional; type: z.ZodOptional>; }, z.core.$strict>; declare const PageSetViewportSizeParamsSchema: z.ZodObject<{ pageId: z.ZodString; width: z.ZodNumber; height: z.ZodNumber; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const PageWaitForTimeoutParamsSchema: z.ZodObject<{ pageId: z.ZodString; ms: z.ZodNumber; }, z.core.$strict>; declare const PageWaitForSelectorParamsSchema: z.ZodObject<{ pageId: z.ZodString; selector: z.ZodString; options: z.ZodOptional>; timeout: z.ZodOptional; pierceShadow: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const LocatorClickParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional>; clickCount: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const LocatorScrollToParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; percent: z.ZodUnion; }, z.core.$strict>; declare const RgbaColorSchema: z.ZodObject<{ r: z.ZodNumber; g: z.ZodNumber; b: z.ZodNumber; a: z.ZodOptional; }, z.core.$strict>; declare const LocatorHighlightParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional; borderColor: z.ZodOptional; }, z.core.$strict>>; contentColor: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>; }, z.core.$strict>; declare const LocatorSendClickEventParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; options: z.ZodOptional; cancelable: z.ZodOptional; composed: z.ZodOptional; detail: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const LocatorTypeParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; text: z.ZodString; options: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; declare const LocatorSelectOptionParamsSchema: z.ZodObject<{ selector: z.ZodString; nth: z.ZodOptional; pageId: z.ZodString; values: z.ZodUnion]>; }, z.core.$strict>; declare const LocatorCentroidResultSchema: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strict>; declare const StagehandLogSchema: z.ZodObject<{ level: z.ZodEnum<{ error: "error"; warn: "warn"; info: "info"; debug: "debug"; }>; message: z.ZodString; data: z.ZodRecord; }, z.core.$strict>; //#endregion //#region ../protocol/types.d.ts type Variables = z.infer; type MouseButton = z.infer; type StagehandMetrics = z.infer; type ModelConfig = z.infer; type ModelName = z.infer; type Action = z.infer; type ActResultData = z.infer; type ActResult = z.infer; type ExtractResult$1 = z.infer; type DefaultExtractData = z.infer; type ObserveResult = z.infer; type PageRef = z.infer; type PageEventName = z.infer; type PageCDPEvent = z.infer; type PageNavigationOptions = z.infer; type NavigationHeader = z.infer; type NavigationSecurityDetails = z.infer; type NavigationServerAddr = z.infer; type NavigationResponseDescriptor = z.infer; type PageScreenshotClip = z.infer; type PageSnapshotOptions = z.infer; type SnapshotResult = z.infer; type WebMCPAnnotation = z.infer; type WebMCPToolDescriptor = z.infer; type WebMCPInvocationDescriptor = z.infer; type WebMCPInvocationStatus = z.infer; type WebMCPRemoteObject = z.infer; type WebMCPToolResponse = z.infer; type LocatorDescriptor = z.infer; type ImplementationInfo = z.infer; type ContextClipboardPasteParams = z.infer; type ContextSetExtraHTTPHeadersParams = z.infer; type PageReloadParams = z.infer; type PageClickParams = z.infer; type PageDragAndDropParams = z.infer; type PageDragAndDropRoutePoint = z.infer; type PageTypeParams = z.infer; type PageKeyPressParams = z.infer; type PageSetExtraHTTPHeadersParams = z.infer; type PageScreenshotOptions = z.infer; type PageSetViewportSizeParams = z.infer; type PageWaitForTimeoutParams = z.infer; type PageWaitForSelectorParams = z.infer; type LocatorClickParams = z.infer; type LocatorScrollToParams = z.infer; type RgbaColor = z.infer; type LocatorHighlightParams = z.infer; type LocatorSendClickEventParams = z.infer; type LocatorTypeParams = z.infer; type LocatorSelectOptionParams = z.infer; type CacheStatus = z.infer; type CacheTokenSavings = z.infer; type CacheMetadata = z.infer; type StagehandResultUsage = z.infer; type StagehandResultMetadata = z.infer; type LocatorCentroidResult = z.infer; type StagehandLog = z.infer; type StagehandRpcNotification = z.infer; type Caching = z.infer; type Cookie = z.infer; type CookieParam = z.infer; type DomainPolicy = z.infer; type LoadState = z.infer; //#endregion //#region src/commandClient.d.ts /** The transport-independent command boundary used by Stagehand's public object model. */ interface StagehandCommandClient { send(method: Method, params: z.input): Promise>; onNotification(listener: (notification: StagehandRpcNotification) => void): () => void; } //#endregion //#region src/fileUpload.d.ts type FilePayload = { name: string; mimeType?: string; buffer: ArrayBuffer | Uint8Array | string; lastModified?: number; }; type FileInput = string | string[] | FilePayload | FilePayload[]; //#endregion //#region src/locator.d.ts type LocatorClickOptions = NonNullable; type LocatorHighlightOptions = NonNullable; type LocatorSendClickEventOptions = NonNullable; type LocatorTypeOptions = NonNullable; declare class Locator { readonly rpcClient: StagehandCommandClient; readonly descriptor: LocatorDescriptor; constructor(rpcClient: StagehandCommandClient, descriptor: LocatorDescriptor); click(options?: LocatorClickOptions): Promise; hover(): Promise; fill(value: string): Promise; count(): Promise; isChecked(): Promise; inputValue(): Promise; isVisible(): Promise; innerText(): Promise; innerHtml(): Promise; textContent(): Promise; scrollTo(percent: LocatorScrollToParams["percent"]): Promise; centroid(): Promise; highlight(options?: LocatorHighlightOptions): Promise; sendClickEvent(options?: LocatorSendClickEventOptions): Promise; type(text: string, options?: LocatorTypeOptions): Promise; selectOption(values: LocatorSelectOptionParams["values"]): Promise; setInputFiles(files: FileInput): Promise; first(): Locator; nth(index: number): Locator; } //#endregion //#region src/pageScripts.d.ts type InitScriptSource = string | { path?: string; content?: string; } | ((arg: Arg) => unknown); //#endregion //#region src/response.d.ts type ResponseHeader = NavigationHeader; type ResponseSecurityDetails = NavigationSecurityDetails; type ResponseServerAddr = NavigationServerAddr; declare class Response { #private; constructor(rpcClient: StagehandCommandClient, descriptor: NavigationResponseDescriptor); url(): string; status(): number; statusText(): string; ok(): boolean; headers(): Record; allHeaders(): Promise>; headerValue(name: string): Promise; headerValues(name: string): Promise; headersArray(): Promise; fromServiceWorker(): boolean; securityDetails(): Promise; serverAddr(): Promise; body(): Promise; text(): Promise; json(): Promise; finished(): Promise; } //#endregion //#region src/browser/index.d.ts declare const stagehandBrowserBrand: unique symbol; type StagehandBrowserProvider = "local" | "browserbase"; type StagehandBrowserOrigin = "launched" | "connected"; /** * A browser whose Stagehand extension is ready for its first RPC call. * * Browser handles are created by Stagehand's browser factories. The private * brand prevents arbitrary CDP connections from being passed to Stagehand. */ interface StagehandBrowser { readonly [stagehandBrowserBrand]: true; readonly provider: StagehandBrowserProvider; readonly origin: StagehandBrowserOrigin; /** Browserbase session id backing this browser; undefined for local browsers. */ readonly sessionId?: string; readonly context: BrowserContext; readonly closed: boolean; close(): Promise; } interface LocalBrowser { launch(options?: LocalBrowserLaunchOptions): Promise; connect(options: LocalBrowserConnectOptions): Promise; } interface BrowserbaseBrowser { launch(options: BrowserbaseLaunchOptions): Promise; connect(options: BrowserbaseConnectOptions): Promise; search(options: BrowserbaseSearchOptions): Promise; fetch(options: BrowserbaseFetchOptions): Promise; } //#endregion //#region src/clientSchemas.d.ts declare const LocalBrowserLaunchOptionsSchema: z.ZodObject<{ args: z.ZodOptional>; executablePath: z.ZodOptional; port: z.ZodOptional; userDataDir: z.ZodOptional; preserveUserDataDir: z.ZodOptional; headless: z.ZodOptional; devtools: z.ZodOptional; chromiumSandbox: z.ZodOptional; ignoreDefaultArgs: z.ZodOptional]>>; proxy: z.ZodOptional; username: z.ZodOptional; password: z.ZodOptional; }, z.core.$strict>>; locale: z.ZodOptional; viewport: z.ZodOptional>; deviceScaleFactor: z.ZodOptional; hasTouch: z.ZodOptional; ignoreHTTPSErrors: z.ZodOptional; downloadsPath: z.ZodOptional; acceptDownloads: z.ZodOptional; keepAlive: z.ZodOptional; }, z.core.$strict>; declare const LocalBrowserConnectOptionsSchema: z.ZodObject<{ cdpUrl: z.ZodString; extensionId: z.ZodOptional; }, z.core.$strict>; type BrowserbaseLaunchOptionsInput = Browserbase.SessionCreateParams & { apiKey: string; baseUrl?: string; }; type BrowserbaseLaunchOptionsOutput = Browserbase.SessionCreateParams & { apiKey: string; baseUrl: string; }; /** * Browserbase owns the session option surface. Keep this object loose so newly added SDK options * pass through without requiring a Stagehand protocol or schema update. */ declare const BrowserbaseLaunchOptionsSchema: z.ZodType; declare const BrowserbaseConnectOptionsSchema: z.ZodObject<{ apiKey: z.ZodString; baseUrl: z.ZodDefault; sessionId: z.ZodString; extensionId: z.ZodOptional; }, z.core.$strict>; declare const BrowserbaseSearchOptionsSchema: z.ZodObject<{ query: z.ZodString; numResults: z.ZodOptional; apiKey: z.ZodString; baseUrl: z.ZodDefault; }, z.core.$strict>; declare const BrowserbaseFetchOptionsSchema: z.ZodObject<{ url: z.ZodURL; allowInsecureSsl: z.ZodOptional; allowRedirects: z.ZodOptional; format: z.ZodOptional>; proxies: z.ZodOptional; schema: z.ZodOptional>; apiKey: z.ZodString; baseUrl: z.ZodDefault; }, z.core.$strict>; declare const BrowserbaseSearchResultSchema: z.ZodObject<{ query: z.ZodString; requestId: z.ZodString; results: z.ZodArray>; favicon: z.ZodOptional>; image: z.ZodOptional>; publishedDate: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; declare const BrowserbaseFetchResultSchema: z.ZodObject<{ id: z.ZodString; content: z.ZodUnion]>; contentType: z.ZodString; encoding: z.ZodString; headers: z.ZodRecord; statusCode: z.ZodNumber; }, z.core.$strip>; declare const WebMCPToolsOptionsSchema: z.ZodObject<{ timeout: z.ZodOptional>; }, z.core.$strict>; declare const WebMCPInvokeOptionsSchema: z.ZodObject<{ input: z.ZodOptional>>; }, z.core.$strict>; declare const WebMCPResultOptionsSchema: z.ZodObject<{ timeout: z.ZodOptional; }, z.core.$strict>; /** An LLM callback implemented locally by the SDK consumer. It never crosses the wire. */ declare const ClientLLMSchema: z.ZodObject<{ generate: z.ZodFunction; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; responseFormat: z.ZodObject<{ type: z.ZodLiteral<"json_schema">; name: z.ZodString; description: z.ZodOptional; schema: z.ZodJSONSchema; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; tools: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strict>>>; description: z.ZodOptional; inputSchema: z.ZodObject<{ $schema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>; execution: z.ZodOptional>; }, z.core.$strict>>; outputSchema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; toolChoice: z.ZodOptional>; }, z.core.$strict>>; responseFormat: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>]>], null>, z.ZodPromise; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"text">; }, z.core.$strict>, z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"json_schema">; structuredContent: z.ZodJSONSchema; }, z.core.$strict>], "outputFormat">>>; }, z.core.$strict>; declare const StagehandClientLogLevelSchema: z.ZodUnion, z.ZodLiteral<"off">]>; declare const StagehandClientLogFormatSchema: z.ZodEnum<{ json: "json"; pretty: "pretty"; }>; declare const StagehandClientLoggingConfigSchema: z.ZodObject<{ level: z.ZodDefault, z.ZodLiteral<"off">]>>; format: z.ZodDefault>; onLog: z.ZodOptional void | Promise, (log: StagehandLog) => void | Promise>>; }, z.core.$strict>; declare const StagehandClientActOptionsSchema: z.ZodObject<{ model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; variables: z.ZodOptional, z.ZodObject<{ value: z.ZodUnion; description: z.ZodOptional; }, z.core.$strict>]>>>; timeout: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; locator: z.ZodOptional>; ignoreLocators: z.ZodOptional>>; page: z.ZodOptional>; }, z.core.$strict>; declare const StagehandClientObserveOptionsSchema: z.ZodObject<{ model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; variables: z.ZodOptional, z.ZodObject<{ value: z.ZodUnion; description: z.ZodOptional; }, z.core.$strict>]>>>; timeout: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; locator: z.ZodOptional>; ignoreLocators: z.ZodOptional>>; page: z.ZodOptional>; }, z.core.$strict>; declare const StagehandClientExtractOptionsSchema: z.ZodObject<{ model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>>; timeout: z.ZodOptional; screenshot: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; locator: z.ZodOptional>; ignoreLocators: z.ZodOptional>>; page: z.ZodOptional>; }, z.core.$strict>; declare const StagehandClientCreateConfigSchema: z.ZodObject<{ apiKey: z.ZodOptional; systemPrompt: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; apiUrl: z.ZodOptional; telemetry: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>>; selfHeal: z.ZodOptional; domSettleTimeoutMs: z.ZodOptional; model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>, z.ZodObject<{ generate: z.ZodFunction; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; responseFormat: z.ZodObject<{ type: z.ZodLiteral<"json_schema">; name: z.ZodString; description: z.ZodOptional; schema: z.ZodJSONSchema; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; tools: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strict>>>; description: z.ZodOptional; inputSchema: z.ZodObject<{ $schema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>; execution: z.ZodOptional>; }, z.core.$strict>>; outputSchema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; toolChoice: z.ZodOptional>; }, z.core.$strict>>; responseFormat: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>]>], null>, z.ZodPromise; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"text">; }, z.core.$strict>, z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"json_schema">; structuredContent: z.ZodJSONSchema; }, z.core.$strict>], "outputFormat">>>; }, z.core.$strict>]>>; logging: z.ZodDefault, z.ZodLiteral<"off">]>>; format: z.ZodDefault>; onLog: z.ZodOptional void | Promise, (log: StagehandLog) => void | Promise>>; }, z.core.$strict>>; }, z.core.$strict>; declare const StagehandBrowserSchema: z.ZodCustom; declare const StagehandCreateOptionsSchema: z.ZodObject<{ apiKey: z.ZodOptional; systemPrompt: z.ZodOptional; cache: z.ZodOptional; }, z.core.$strict>]>>; apiUrl: z.ZodOptional; telemetry: z.ZodDefault>; }, z.core.$strict>; }, z.core.$strict>>; selfHeal: z.ZodOptional; domSettleTimeoutMs: z.ZodOptional; model: z.ZodOptional; headers: z.ZodOptional>; modelName: z.ZodUnion, z.ZodTemplateLiteral<"anthropic/claude-3-haiku-20240307" | "anthropic/claude-haiku-4-5-20251001" | "anthropic/claude-haiku-4-5" | "anthropic/claude-opus-4-0" | "anthropic/claude-opus-4-20250514" | "anthropic/claude-opus-4-1-20250805" | "anthropic/claude-opus-4-1" | "anthropic/claude-opus-4-5" | "anthropic/claude-opus-4-5-20251101" | "anthropic/claude-sonnet-4-0" | "anthropic/claude-sonnet-4-20250514" | "anthropic/claude-sonnet-4-5-20250929" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-opus-4-6" | "anthropic/claude-opus-4-7" | "anthropic/claude-opus-4-8" | "anthropic/claude-fable-5" | "anthropic/claude-sonnet-5">, z.ZodTemplateLiteral<"google/gemini-2.0-flash" | "google/gemini-2.0-flash-001" | "google/gemini-2.0-flash-lite" | "google/gemini-2.0-flash-lite-001" | "google/gemini-2.5-pro" | "google/gemini-2.5-flash" | "google/gemini-2.5-flash-image" | "google/gemini-2.5-flash-lite" | "google/gemini-2.5-flash-preview-tts" | "google/gemini-2.5-pro-preview-tts" | "google/gemini-2.5-flash-native-audio-latest" | "google/gemini-2.5-flash-native-audio-preview-09-2025" | "google/gemini-2.5-flash-native-audio-preview-12-2025" | "google/gemini-2.5-computer-use-preview-10-2025" | "google/gemini-3-pro-preview" | "google/gemini-3-pro-image-preview" | "google/gemini-3-flash-preview" | "google/gemini-3.1-pro-preview" | "google/gemini-3.1-pro-preview-customtools" | "google/gemini-3.1-flash-image-preview" | "google/gemini-3.1-flash-lite-preview" | "google/gemini-3.1-flash-tts-preview" | "google/gemini-3.5-flash" | "google/gemini-3.6-flash" | "google/gemini-pro-latest" | "google/gemini-flash-latest" | "google/gemini-flash-lite-latest" | "google/deep-research-pro-preview-12-2025" | "google/deep-research-max-preview-04-2026" | "google/deep-research-preview-04-2026" | "google/nano-banana-pro-preview" | "google/aqa" | "google/gemini-robotics-er-1.5-preview" | "google/gemma-3-1b-it" | "google/gemma-3-4b-it" | "google/gemma-3n-e4b-it" | "google/gemma-3n-e2b-it" | "google/gemma-3-12b-it" | "google/gemma-3-27b-it">, z.ZodTemplateLiteral<"groq/gemma2-9b-it" | "groq/llama-3.1-8b-instant" | "groq/llama-3.3-70b-versatile" | "groq/meta-llama/llama-guard-4-12b" | "groq/openai/gpt-oss-120b" | "groq/openai/gpt-oss-20b" | "groq/deepseek-r1-distill-llama-70b" | "groq/meta-llama/llama-4-maverick-17b-128e-instruct" | "groq/meta-llama/llama-4-scout-17b-16e-instruct" | "groq/meta-llama/llama-prompt-guard-2-22m" | "groq/meta-llama/llama-prompt-guard-2-86m" | "groq/moonshotai/kimi-k2-instruct-0905" | "groq/qwen/qwen3-32b" | "groq/llama-guard-3-8b" | "groq/llama3-70b-8192" | "groq/llama3-8b-8192" | "groq/mixtral-8x7b-32768" | "groq/qwen-qwq-32b" | "groq/qwen-2.5-32b" | "groq/deepseek-r1-distill-qwen-32b">, z.ZodTemplateLiteral<"cerebras/llama3.1-8b" | "cerebras/gpt-oss-120b" | "cerebras/qwen-3-235b-a22b-instruct-2507" | "cerebras/qwen-3-235b-a22b-thinking-2507" | "cerebras/zai-glm-4.6" | "cerebras/zai-glm-4.7">]>; }, z.core.$strict>, z.ZodObject<{ generate: z.ZodFunction; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; responseFormat: z.ZodObject<{ type: z.ZodLiteral<"json_schema">; name: z.ZodString; description: z.ZodOptional; schema: z.ZodJSONSchema; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ messages: z.ZodArray; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; }, z.core.$strict>>; systemPrompt: z.ZodOptional; temperature: z.ZodOptional; stopSequences: z.ZodOptional>; tools: z.ZodOptional; icons: z.ZodOptional; sizes: z.ZodOptional>; theme: z.ZodOptional>; }, z.core.$strict>>>; description: z.ZodOptional; inputSchema: z.ZodObject<{ $schema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>; execution: z.ZodOptional>; }, z.core.$strict>>; outputSchema: z.ZodOptional; type: z.ZodLiteral<"object">; properties: z.ZodOptional>>; required: z.ZodOptional>; }, z.core.$strict>>; annotations: z.ZodOptional; readOnlyHint: z.ZodOptional; destructiveHint: z.ZodOptional; idempotentHint: z.ZodOptional; openWorldHint: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>>>; toolChoice: z.ZodOptional>; }, z.core.$strict>>; responseFormat: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>]>], null>, z.ZodPromise; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"text">; }, z.core.$strict>, z.ZodObject<{ role: z.ZodEnum<{ user: "user"; assistant: "assistant"; }>; content: z.ZodUnion; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">, z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_use">; id: z.ZodString; name: z.ZodString; input: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"tool_result">; toolUseId: z.ZodString; content: z.ZodArray; text: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"image">; data: z.ZodBase64; mimeType: z.ZodString; annotations: z.ZodOptional>>; priority: z.ZodOptional; lastModified: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>], "type">>; structuredContent: z.ZodOptional>; isError: z.ZodOptional; }, z.core.$strict>], "type">>]>; stopReason: z.ZodOptional; usage: z.ZodOptional; cachedInputTokens: z.ZodOptional; }, z.core.$strict>>; outputFormat: z.ZodLiteral<"json_schema">; structuredContent: z.ZodJSONSchema; }, z.core.$strict>], "outputFormat">>>; }, z.core.$strict>]>>; logging: z.ZodDefault, z.ZodLiteral<"off">]>>; format: z.ZodDefault>; onLog: z.ZodOptional void | Promise, (log: StagehandLog) => void | Promise>>; }, z.core.$strict>>; browser: z.ZodCustom; }, z.core.$strict>; type ClientLLM = z.infer; type StagehandClientLoggingConfig = z.input; type ResolvedStagehandClientLoggingConfig = z.output; type StagehandClientActOptions = z.input; type StagehandClientObserveOptions = z.input; type StagehandClientExtractOptions = z.input; type LocalBrowserLaunchOptions = z.infer; type LocalBrowserConnectOptions = z.infer; type BrowserbaseLaunchOptions = z.input; type BrowserbaseConnectOptions = z.input; type BrowserbaseSearchOptions = z.input; type BrowserbaseFetchOptions = z.input; type BrowserbaseSearchResult = z.infer; type BrowserbaseFetchResult = z.infer; type StagehandClientCreateConfig = z.input; type StagehandCreateOptions = z.input; type ResolvedStagehandCreateOptions = z.output; type WebMCPToolsOptions = z.infer; type WebMCPInvokeOptions = z.infer; type WebMCPResultOptions = z.infer; //#endregion //#region src/webmcp.d.ts declare class WebMCPTool { #private; readonly name: string; readonly description: string; readonly inputSchema?: WebMCPToolDescriptor["inputSchema"]; readonly annotations?: WebMCPAnnotation; readonly frameId: string; readonly backendNodeId?: number; constructor(rpcClient: StagehandCommandClient, pageId: string, descriptor: WebMCPToolDescriptor); invoke(options?: WebMCPInvokeOptions): Promise; } declare class WebMCPInvocation { #private; readonly invocationId: string; readonly toolName: string; readonly frameId: string; readonly input: WebMCPInvocationDescriptor["input"]; constructor(rpcClient: StagehandCommandClient, pageId: string, descriptor: WebMCPInvocationDescriptor); result(options?: WebMCPResultOptions): Promise; cancel(): Promise; } //#endregion //#region src/page.d.ts type ScreenshotOptions = Omit & { mask?: Locator[]; path?: string; }; type PageClickOptions = NonNullable; type PageDragAndDropOptions = NonNullable; type PageKeyPressOptions = NonNullable; type PageReloadOptions = NonNullable; type PageSetViewportSizeOptions = NonNullable; type PageTypeOptions = NonNullable; type PageWaitForSelectorOptions = NonNullable; interface PageEventListener { (event: PageCDPEvent): unknown; } declare class CDPSubscription { private readonly rpcClient; private readonly subscriptionId; private readonly removeLocalListener; private readonly onDisposed; private unsubscribePromise; constructor(rpcClient: StagehandCommandClient, subscriptionId: string, removeLocalListener: () => void, onDisposed: () => void); unsubscribe(): Promise; private unsubscribeOnce; } declare class Page { readonly rpcClient: StagehandCommandClient; currentRef: PageRef; private readonly eventSubscriptions; constructor(rpcClient: StagehandCommandClient, ref: PageRef); get pageId(): string; get ref(): PageRef; goto(url: string, options?: PageNavigationOptions): Promise; reload(options?: PageReloadOptions): Promise; goBack(options?: PageNavigationOptions): Promise; goForward(options?: PageNavigationOptions): Promise; click(x: number, y: number, options?: PageClickOptions): Promise; hover(x: number, y: number): Promise; scroll(x: number, y: number, deltaX: number, deltaY: number): Promise; dragAndDrop(fromX: number, fromY: number, toX: number, toY: number, options?: PageDragAndDropOptions): Promise; type(text: string, options?: PageTypeOptions): Promise; keyPress(key: string, options?: PageKeyPressOptions): Promise; evaluate(expression: string | ((arg: Arg) => R | Promise), arg?: Arg): Promise; addInitScript(script: InitScriptSource, arg?: Arg): Promise; on(event: PageEventName, listener: PageEventListener): Promise; setExtraHTTPHeaders(headers: PageSetExtraHTTPHeadersParams["headers"]): Promise; setViewportSize(width: number, height: number, options?: PageSetViewportSizeOptions): Promise; waitForLoadState(state: LoadState, timeout?: number): Promise; waitForTimeout(ms: PageWaitForTimeoutParams["ms"]): Promise; waitForSelector(selector: string, options?: PageWaitForSelectorOptions): Promise; screenshot(options?: ScreenshotOptions): Promise; snapshot(options?: PageSnapshotOptions): Promise; tools(options?: WebMCPToolsOptions): Promise; url(): Promise; title(): Promise; close(): Promise; locator(selector: string): Locator; } //#endregion //#region src/browserClipboard.d.ts type ClipboardOptions = { page?: Page; }; type ClipboardPasteOptions = ClipboardOptions & { shortcut?: ContextClipboardPasteParams["shortcut"]; }; declare class BrowserClipboard { readonly rpcClient: StagehandCommandClient; constructor(rpcClient: StagehandCommandClient); readText(options?: ClipboardOptions): Promise; writeText(text: string, options?: ClipboardOptions): Promise; clear(options?: ClipboardOptions): Promise; paste(options?: ClipboardPasteOptions): Promise; copy(options?: ClipboardOptions): Promise; cut(options?: ClipboardOptions): Promise; } //#endregion //#region src/browserContext.d.ts type ClearCookieOptions = { name?: string | RegExp; domain?: string | RegExp; path?: string | RegExp; }; declare class BrowserContext { readonly rpcClient: StagehandCommandClient; private readonly closeBrowser?; clipboardRef?: BrowserClipboard; constructor(rpcClient: StagehandCommandClient, closeBrowser?: (() => Promise) | undefined); get clipboard(): BrowserClipboard; pages(): Promise; newPage(url?: string): Promise; activePage(): Promise; setActivePage(page: Page): Promise; /** Close the underlying browser. */ close(): Promise; addInitScript(script: InitScriptSource, arg?: Arg): Promise; setExtraHTTPHeaders(headers: ContextSetExtraHTTPHeadersParams["headers"]): Promise; getDomainPolicy(): Promise; setDomainPolicy(policy: DomainPolicy | null): Promise; cookies(urls?: string | string[]): Promise; addCookies(cookies: CookieParam[]): Promise; clearCookies(options?: ClearCookieOptions): Promise; } //#endregion //#region ../protocol/json-rpc/types.d.ts type JSONRPCRequest = z.infer; type JSONRPCResponse = z.infer; type JSONRPCMessage = z.infer; //#endregion //#region src/runtimeCompatibility.d.ts type RuntimeRequirement = { protocolVersion: string; }; /** * The marker a connected runtime published. Unlike the protocol's `RuntimeDescriptor`, the * server name is not pinned to "stagehand" so a foreign runtime can be reported as incompatible * rather than silently treated as unreadable. */ type ReportedRuntimeDescriptor = { protocolVersion: string; serverInfo: ImplementationInfo; }; type RuntimeIncompatibilityReason = "protocol-invalid-version" | "protocol-major-mismatch" | "protocol-server-too-old" | "protocol-prerelease-mismatch" | "runtime-name-mismatch"; type RuntimeCompatibility = { kind: "compatible"; protocolVersion: string; serverInfo: ImplementationInfo; } | { kind: "incompatible"; reason: RuntimeIncompatibilityReason; detail: string; required: RuntimeRequirement; reported: ReportedRuntimeDescriptor; } | { kind: "unknown"; reason: "missing-marker" | "unreadable-marker"; detail: string; }; //#endregion //#region src/cdpClient.d.ts type ServiceWorkerInfo = { targetId: string; url: string; title: string; extensionId?: string; }; /** * Raised as soon as the connected Stagehand extension publishes a runtime marker this SDK cannot * talk to. Initialization does not keep polling: the extension will not change its protocol * version while the session is open. */ declare class StagehandRuntimeIncompatibleError extends Error { readonly compatibility: Extract; readonly reason: RuntimeIncompatibilityReason; /** Human-readable negotiation failure, without the version summary or remediation. */ readonly detail: string; /** Protocol version this SDK speaks. */ readonly clientProtocolVersion: string; /** Protocol version the connected extension reported. */ readonly reportedProtocolVersion: string; /** `serverInfo` published by the connected runtime (name + version). */ readonly serverInfo: ImplementationInfo; readonly remediation: string; constructor(compatibility: Extract); } //#endregion //#region src/rpcClient.d.ts type PendingRequest = { method: RPCMethod; resolve(value: unknown): void; reject(error: Error): void; removeAbortListener?: () => void; }; type RegisteredRequestHandler = { method: RPCMethod; handle(params: unknown): Promise; }; type RPCSendOptions = { signal?: AbortSignal; }; type CDPTransport = { readonly serviceWorker: ServiceWorkerInfo; readonly webSocketDebuggerUrl?: string; onmessage?: (message: unknown) => void | Promise; onclose?: (reason?: Error) => void; onerror?: (error: Error) => void; send(message: JSONRPCMessage, signal?: AbortSignal): Promise; close(): void; }; declare class RPCClient { readonly serviceWorker: ServiceWorkerInfo; readonly browserWebSocketDebuggerUrl?: string; nextRequestId: number; pending: Map; requestHandlers: Map; notificationListeners: Set<(notification: StagehandRpcNotification) => void>; pendingNotifications: StagehandRpcNotification[]; closed: boolean; readonly cdp: CDPTransport; constructor(cdp: CDPTransport); send(method: Method, params: z.input, options?: RPCSendOptions): Promise>; sendStagehandInit(params: z.input, signal: AbortSignal): Promise>; onRequest(method: Method, handler: (params: z.output) => z.input | Promise>): () => void; onNotification(listener: (notification: StagehandRpcNotification) => void): () => void; close(reason?: Error, { closeTransport }?: { closeTransport?: boolean; }): void; waitForResponse(id: number, method: RPCMethod, signal?: AbortSignal): Promise; receive(raw: unknown): Promise; handleRequest(request: JSONRPCRequest): Promise; receiveResponse(response: JSONRPCResponse): void; rejectPending(id: number, error: Error): void; sendError(id: number | null, code: number, message: string, data?: unknown): Promise; handleNotification(notification: StagehandRpcNotification): void; } //#endregion //#region src/browser/factories.d.ts declare const localBrowser: LocalBrowser; declare const browserbase: BrowserbaseBrowser; //#endregion //#region src/batch.d.ts type ExperimentalBatchOptions = { /** Page exposed as `batch.page`. AI operations still default to the active page. */page?: Page; /** Overall callback deadline in milliseconds. */ timeout?: number; }; type ExperimentalBatchBrowserContext = Omit; type ExperimentalBatchExtractOptions = StagehandClientExtractOptions; type ExperimentalBatchContext = { /** Page selected when the batch starts; this does not change the default target of AI operations. */page: Page; context: ExperimentalBatchBrowserContext; act(instruction: string | Action, options?: StagehandClientActOptions): Promise; observe(instruction?: string, options?: StagehandClientObserveOptions): Promise; extract(instruction: string, options?: ExperimentalBatchExtractOptions): Promise; extract(instruction: string, schema: unknown, options?: ExperimentalBatchExtractOptions): Promise; metrics(): Promise; }; type ExperimentalBatchCallback = (batch: ExperimentalBatchContext, input: Input) => Result | Promise; //#endregion //#region src/stagehand.d.ts type ProtocolExtractResult = ExtractResult$1; type ExtractResult = Omit & { data: z.output; }; declare class Stagehand { private readonly browserHandle; private readonly createConfig; isInitialized: boolean; rpcClient: RPCClient | undefined; removeNotificationListener: (() => void) | undefined; removeClientLLMHandler: (() => void) | undefined; closePromise: Promise | undefined; initRequestStarted: boolean; private constructor(); static create(input: StagehandCreateOptions): Promise; get browser(): StagehandBrowser; get initialized(): boolean; metrics(): Promise; experimentalBatch(callback: ExperimentalBatchCallback): Promise>; experimentalBatch(callback: ExperimentalBatchCallback, input: Input, options?: ExperimentalBatchOptions): Promise>; private initialize; act(instruction: string, options?: StagehandClientActOptions): Promise; act(instruction: Action, options?: StagehandClientActOptions): Promise; observe(instruction?: string, options?: StagehandClientObserveOptions): Promise; extract(instruction: string, options?: StagehandClientExtractOptions): Promise>>; extract(instruction: string, schema: Schema, options?: StagehandClientExtractOptions): Promise>; close(): Promise; private get connectedRpcClient(); } //#endregion export { type ActResult, type ActResultData, type Action, BrowserClipboard, BrowserContext, type BrowserbaseBrowser, type BrowserbaseConnectOptions, BrowserbaseConnectOptionsSchema, type BrowserbaseFetchOptions, BrowserbaseFetchOptionsSchema, type BrowserbaseFetchResult, BrowserbaseFetchResultSchema, type BrowserbaseLaunchOptions, BrowserbaseLaunchOptionsSchema, type BrowserbaseSearchOptions, BrowserbaseSearchOptionsSchema, type BrowserbaseSearchResult, BrowserbaseSearchResultSchema, CDPSubscription, type CacheMetadata, type CacheStatus, type CacheTokenSavings, type Caching, type ClearCookieOptions, type ClientLLM, ClientLLMSchema, type ClipboardOptions, type ClipboardPasteOptions, type Cookie, type CookieParam, type DomainPolicy, type ExperimentalBatchBrowserContext, type ExperimentalBatchCallback, type ExperimentalBatchContext, type ExperimentalBatchExtractOptions, type ExperimentalBatchOptions, type ExtractResult, type FileInput, type FilePayload, type InitScriptSource, type LoadState, type LocalBrowser, type LocalBrowserConnectOptions, LocalBrowserConnectOptionsSchema, type LocalBrowserLaunchOptions, LocalBrowserLaunchOptionsSchema, Locator, type LocatorCentroidResult, type LocatorClickOptions, type LocatorHighlightOptions, type LocatorSendClickEventOptions, type LocatorTypeOptions, type ModelConfig, type ModelName, type MouseButton, type ObserveResult, Page, type PageCDPEvent, type PageClickOptions, type PageDragAndDropOptions, type PageDragAndDropRoutePoint, type PageEventListener, type PageEventName, type PageKeyPressOptions, type PageNavigationOptions, type PageReloadOptions, type PageScreenshotClip, type PageSetViewportSizeOptions, type PageSnapshotOptions, type PageTypeOptions, type PageWaitForSelectorOptions, type ReportedRuntimeDescriptor, type ResolvedStagehandClientLoggingConfig, type ResolvedStagehandCreateOptions, Response, type ResponseHeader, type ResponseSecurityDetails, type ResponseServerAddr, type RgbaColor, type RuntimeCompatibility, type RuntimeIncompatibilityReason, type RuntimeRequirement, type ScreenshotOptions, type SnapshotResult, Stagehand, type StagehandBrowser, type StagehandBrowserOrigin, type StagehandBrowserProvider, StagehandBrowserSchema, type StagehandClientActOptions, type StagehandClientCreateConfig, StagehandClientCreateConfigSchema, type StagehandClientExtractOptions, StagehandClientLogFormatSchema, StagehandClientLogLevelSchema, type StagehandClientLoggingConfig, StagehandClientLoggingConfigSchema, type StagehandClientObserveOptions, type StagehandCreateOptions, StagehandCreateOptionsSchema, type StagehandMetrics, type StagehandResultMetadata, type StagehandResultUsage, StagehandRuntimeIncompatibleError, type Variables, type WebMCPAnnotation, WebMCPInvocation, type WebMCPInvocationStatus, type WebMCPInvokeOptions, WebMCPInvokeOptionsSchema, type WebMCPRemoteObject, type WebMCPResultOptions, WebMCPResultOptionsSchema, WebMCPTool, type WebMCPToolResponse, type WebMCPToolsOptions, WebMCPToolsOptionsSchema, browserbase, localBrowser }; //# sourceMappingURL=index.d.mts.map