import { InputSchema } from "@mcp-b/webmcp-types"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region src/index.d.ts type StandardInputValidatorSchema = StandardSchemaV1, Record>; interface StandardJSONSchemaV1 { readonly '~standard': { readonly version: 1; readonly vendor: string; readonly types?: { readonly input: Input; readonly output: Output; } | undefined; readonly jsonSchema: { readonly input: (options: { readonly target: 'draft-2020-12' | 'draft-07' | 'openapi-3.0' | ({} & string); readonly libraryOptions?: Record | undefined; }) => Record; readonly output: (options: { readonly target: 'draft-2020-12' | 'draft-07' | 'openapi-3.0' | ({} & string); readonly libraryOptions?: Record | undefined; }) => Record; }; }; } type StandardInputJsonSchema = StandardJSONSchemaV1, Record>; type ToolInputSchema = InputSchema | StandardInputValidatorSchema | StandardInputJsonSchema; type ToolOutputSchema = InputSchema | StandardInputJsonSchema; type StandardValidationResult = Awaited>; type StandardValidationIssue = NonNullable[number]; interface WebMCPPolyfillInitOptions { /** * Controls whether the polyfill auto-initializes when loaded. * Set to false to prevent auto-initialization; then call initializeWebMCPPolyfill() manually. * @default true */ autoInitialize?: boolean; /** * Controls installation of navigator.modelContextTesting when this polyfill provides modelContext. * - true or 'if-missing' (default): install only when modelContextTesting is missing. * - 'always': install even when modelContextTesting already exists. * - false: do not install. * @default 'if-missing' */ installTestingShim?: boolean | 'always' | 'if-missing'; /** * Deprecated no-op kept for backward compatibility with previous wrappers. */ disableIframeTransportByDefault?: boolean; } declare function isPlainObject(value: unknown): value is Record; declare function validateArgsWithSchema(args: Record, schema: InputSchema): StandardValidationIssue | null; declare function initializeWebMCPPolyfill(options?: WebMCPPolyfillInitOptions): void; declare function cleanupWebMCPPolyfill(): void; declare global { interface Window { __webMCPPolyfillOptions?: WebMCPPolyfillInitOptions; } } //# sourceMappingURL=index.d.ts.map //#endregion export { StandardInputJsonSchema, StandardInputValidatorSchema, StandardJSONSchemaV1, ToolInputSchema, ToolOutputSchema, WebMCPPolyfillInitOptions, cleanupWebMCPPolyfill, initializeWebMCPPolyfill, initializeWebMCPPolyfill as initializeWebModelContextPolyfill, isPlainObject, validateArgsWithSchema }; //# sourceMappingURL=index.d.ts.map