import { z } from "zod";
export declare const StitchConfigSchema: z.ZodObject<{
    apiKey: z.ZodOptional<z.ZodString>;
    accessToken: z.ZodOptional<z.ZodString>;
    projectId: z.ZodOptional<z.ZodString>;
    baseUrl: z.ZodDefault<z.ZodString>;
    timeout: z.ZodDefault<z.ZodNumber>;
    entityCache: z.ZodDefault<z.ZodBoolean>;
    retry: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<false>, z.ZodObject<{
        attempts: z.ZodDefault<z.ZodNumber>;
        baseMs: z.ZodDefault<z.ZodNumber>;
        maxMs: z.ZodDefault<z.ZodNumber>;
    }, z.core.$strict>]>>;
}, z.core.$strip>;
export type StitchConfig = z.infer<typeof StitchConfigSchema>;
/** Input type for StitchConfig - fields with defaults are optional */
export type StitchConfigInput = z.input<typeof StitchConfigSchema>;
export declare const ToolResultSchema: z.ZodObject<{
    success: z.ZodBoolean;
    data: z.ZodOptional<z.ZodUnknown>;
    error: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type ToolResult = z.infer<typeof ToolResultSchema>;
export declare const ToolsSchema: z.ZodObject<{
    tools: z.ZodArray<z.ZodObject<{
        name: z.ZodString;
        description: z.ZodOptional<z.ZodString>;
        inputSchema: z.ZodOptional<z.ZodUnknown>;
    }, z.core.$strip>>;
}, z.core.$strip>;
export type Tools = z.infer<typeof ToolsSchema>;
export interface StitchToolClientSpec {
    name: "stitch-tool-client";
    description: "Authenticated tool pipe for Stitch MCP Server";
    /**
     * Identity-map manager. ALL entity instances (Project, Screen, ...)
     * must be obtained through entities.resolve — never constructed
     * directly — so reference keys are hydrated and instances deduplicated.
     */
    entities: import("../entity-manager.js").EntityManager;
    /**
     * 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<void>;
    /**
     * Call a tool on the MCP server.
     * @param name - Tool name
     * @param args - Tool arguments
     * @returns Parsed tool result
     */
    callTool: <T>(name: string, args: Record<string, unknown>) => Promise<T>;
    /**
     * Get available tools from the server.
     */
    listTools: () => Promise<Tools>;
    /**
     * 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: <T>(path: string, body: unknown) => Promise<T>;
    /**
     * Close the connection.
     */
    close: () => Promise<void>;
}
export interface VirtualToolDefinition {
    name: string;
    description: string;
    source?: string;
    inputSchema: any;
    execute: (client: StitchToolClientSpec, args: any) => Promise<any>;
}
//# sourceMappingURL=client.d.ts.map