import { z } from 'zod'; export declare const StitchConfigSchema: z.ZodObject<{ apiKey: z.ZodOptional; accessToken: z.ZodOptional; projectId: z.ZodOptional; baseUrl: z.ZodDefault; timeout: z.ZodDefault; }, z.core.$strip>; export type StitchConfig = z.infer; /** Input type for StitchConfig - fields with defaults are optional */ export type StitchConfigInput = z.input; export declare const ToolResultSchema: z.ZodObject<{ success: z.ZodBoolean; data: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>; export type ToolResult = z.infer; export declare const ToolsSchema: z.ZodObject<{ tools: z.ZodArray; inputSchema: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>; export type Tools = z.infer; export interface StitchToolClientSpec { name: 'stitch-tool-client'; description: 'Authenticated tool pipe for Stitch MCP Server'; /** * Validate configuration and establish connection. * MUST handle auth header injection based on config. * - API Key: Inject `X-Goog-Api-Key` header. * - OAuth: Inject `Authorization: Bearer` and `X-Goog-User-Project` headers. */ connect: () => Promise; /** * Call a tool on the MCP server. * @param name - Tool name * @param args - Tool arguments * @returns Parsed tool result */ callTool: (name: string, args: Record) => Promise; /** * Get available tools from the server. */ listTools: () => Promise; /** * Make a direct REST POST to the Stitch API. * Used for endpoints not available as MCP tools (e.g. BatchCreateScreens). * Throws StitchError on HTTP error responses. */ httpPost: (path: string, body: unknown) => Promise; /** * Close the connection. */ close: () => Promise; } export interface VirtualToolDefinition { name: string; description: string; source?: string; inputSchema: any; execute: (client: StitchToolClientSpec, args: any) => Promise; } //# sourceMappingURL=client.d.ts.map