import { CallToolResult, InputSchema, ToolDescriptor, WebMcpToolAnnotations, WebMcpToolInput } from "@mcp-b/webmcp-types"; import { StandardJSONSchemaV1 } from "@standard-schema/spec"; //#region src/schema.d.ts type StandardInputJsonSchema = StandardJSONSchemaV1; type ToolInputSchema = InputSchema | StandardInputJsonSchema; interface NormalizedInputSchema { inputSchema: InputSchema; registeredInputSchema?: string; } declare function isPlainObject(value: unknown): value is Record; declare function coerceWebMcpToolDescriptor(tool: ToolDescriptor): ToolDescriptor; declare function coerceWebMcpToolDescriptor(tool: Record): ToolDescriptor; declare function normalizeToolResponse(value: unknown): CallToolResult; declare function createUnknownError(message: string): Error; declare function createToolInvocationFailedError(error: unknown): Error; declare function createInvalidStateError(message: string): Error; declare function validateWebMcpToolDescriptor(tool: ToolDescriptor): void; declare function toWebMcpAnnotations(annotations: WebMcpToolAnnotations): WebMcpToolAnnotations; declare function parseChromeToolInput(input: string): WebMcpToolInput; declare function serializeChromeToolResult(value: unknown): string; declare function withAbortSignal(operation: Promise, signal?: AbortSignal, getAbortReason?: () => unknown): Promise; declare function validatePotentiallyTrustworthyOrigins(origins: readonly string[] | undefined): void; declare function validateWebMcpAccess(ownerDocument: Document | null): void; declare function validateOriginAgentCluster(): void; declare function validateExecutableOrigin(origin: unknown): void; declare function normalizeInputSchema(inputSchema: ToolInputSchema | undefined): NormalizedInputSchema; declare function serializeInputSchema(schema: unknown): string; //#endregion export { NormalizedInputSchema, ToolInputSchema, coerceWebMcpToolDescriptor, createInvalidStateError, createToolInvocationFailedError, createUnknownError, isPlainObject, normalizeInputSchema, normalizeToolResponse, parseChromeToolInput, serializeChromeToolResult, serializeInputSchema, toWebMcpAnnotations, validateExecutableOrigin, validateOriginAgentCluster, validatePotentiallyTrustworthyOrigins, validateWebMcpAccess, validateWebMcpToolDescriptor, withAbortSignal }; //# sourceMappingURL=schema.d.ts.map