import { z } from "zod"; import { type SpillResult } from "@cesteral/shared"; import type { McpTextContent, RequestContext, SdkContext, EffectResult, DispatchedCapability } from "@cesteral/shared"; export declare const GraphqlQueryInputSchema: z.ZodObject<{ query: z.ZodString; variables: z.ZodOptional>; betaFeatures: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; betaFeatures?: string | undefined; variables?: Record | undefined; }, { query: string; betaFeatures?: string | undefined; variables?: Record | undefined; }>; export declare const GraphqlQueryOutputSchema: z.ZodObject<{ data: z.ZodAny; errors: z.ZodOptional, "many">>; spill: z.ZodOptional; objectName: z.ZodOptional; bytes: z.ZodOptional; signedUrl: z.ZodOptional; expiresAt: z.ZodOptional; mimeType: z.ZodOptional; } & { error: z.ZodOptional; }, "strip", z.ZodTypeAny, { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; }, { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; }>>; effect: z.ZodOptional>; dispatchedCapability: z.ZodType; timestamp: z.ZodString; }, "strip", z.ZodTypeAny, { timestamp: string; dispatchedCapability: DispatchedCapability; errors?: Record[] | undefined; data?: any; effect?: EffectResult | undefined; spill?: { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; } | undefined; }, { timestamp: string; dispatchedCapability: DispatchedCapability; errors?: Record[] | undefined; data?: any; effect?: EffectResult | undefined; spill?: { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; } | undefined; }>; type GraphqlInput = z.infer; type GraphqlOutput = z.infer; export declare function graphqlQueryLogic(input: GraphqlInput, context: RequestContext, sdkContext?: SdkContext): Promise; export declare function graphqlQueryResponseFormatter(result: GraphqlOutput & { _spillResult?: SpillResult; }): McpTextContent[]; export declare const graphqlQueryTool: { name: string; title: string; description: string; inputSchema: z.ZodObject<{ query: z.ZodString; variables: z.ZodOptional>; betaFeatures: z.ZodOptional; }, "strip", z.ZodTypeAny, { query: string; betaFeatures?: string | undefined; variables?: Record | undefined; }, { query: string; betaFeatures?: string | undefined; variables?: Record | undefined; }>; outputSchema: z.ZodObject<{ data: z.ZodAny; errors: z.ZodOptional, "many">>; spill: z.ZodOptional; objectName: z.ZodOptional; bytes: z.ZodOptional; signedUrl: z.ZodOptional; expiresAt: z.ZodOptional; mimeType: z.ZodOptional; } & { error: z.ZodOptional; }, "strip", z.ZodTypeAny, { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; }, { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; }>>; effect: z.ZodOptional>; dispatchedCapability: z.ZodType; timestamp: z.ZodString; }, "strip", z.ZodTypeAny, { timestamp: string; dispatchedCapability: DispatchedCapability; errors?: Record[] | undefined; data?: any; effect?: EffectResult | undefined; spill?: { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; } | undefined; }, { timestamp: string; dispatchedCapability: DispatchedCapability; errors?: Record[] | undefined; data?: any; effect?: EffectResult | undefined; spill?: { error?: string | undefined; bucket?: string | undefined; objectName?: string | undefined; bytes?: number | undefined; signedUrl?: string | undefined; expiresAt?: string | undefined; mimeType?: string | undefined; } | undefined; }>; annotations: { readOnlyHint: boolean; openWorldHint: boolean; destructiveHint: boolean; idempotentHint: boolean; cesteral: { kind: "write"; writeClass: "effect"; executableArgsExclude: never[]; platform: string; contractPlatformSlug: string; contractToolSlug: string; operation: "manage"[]; entityKinds: never[]; entityIdArgs: never[]; schemaVersion: number; contractId: string; supportsDryRun: false; supportsBeforeAfterSnapshot: false; requiresValidation: false; requiresSimulation: false; }; }; inputExamples: ({ label: string; input: { query: string; variables: { id: string; advertiserId?: undefined; }; betaFeatures: string; }; } | { label: string; input: { query: string; variables: { advertiserId: string; id?: undefined; }; betaFeatures?: undefined; }; })[]; logic: typeof graphqlQueryLogic; responseFormatter: typeof graphqlQueryResponseFormatter; }; export {}; //# sourceMappingURL=graphql-query.tool.d.ts.map