/** * MCP Tool: Create Expectation * Creates a mock expectation on MockServer */ import { z } from 'zod'; import { MockServerClient } from '../mockserver-client.js'; export declare const CreateExpectationInputSchema: z.ZodObject<{ httpRequest: z.ZodObject<{ method: z.ZodOptional; path: z.ZodOptional; pathParameters: z.ZodOptional>>; queryStringParameters: z.ZodOptional>>; headers: z.ZodOptional>>; body: z.ZodOptional; value: z.ZodString; matchType: z.ZodOptional>; }, "strip", z.ZodTypeAny, { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; }, { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; }>>; }, "strip", z.ZodTypeAny, { method?: string | undefined; path?: string | undefined; pathParameters?: Record | undefined; queryStringParameters?: Record | undefined; headers?: Record | undefined; body?: { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; } | undefined; }, { method?: string | undefined; path?: string | undefined; pathParameters?: Record | undefined; queryStringParameters?: Record | undefined; headers?: Record | undefined; body?: { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; } | undefined; }>; httpResponse: z.ZodOptional; headers: z.ZodOptional>>; body: z.ZodOptional]>>; delay: z.ZodOptional; value: z.ZodNumber; }, "strip", z.ZodTypeAny, { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; }, { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; }>>; }, "strip", z.ZodTypeAny, { statusCode?: number | undefined; headers?: Record | undefined; body?: string | Record | undefined; delay?: { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; } | undefined; }, { statusCode?: number | undefined; headers?: Record | undefined; body?: string | Record | undefined; delay?: { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; } | undefined; }>>; times: z.ZodOptional>; timeToLive: z.ZodOptional; timeToLive: z.ZodNumber; }, "strip", z.ZodTypeAny, { timeUnit: "MILLISECONDS" | "SECONDS" | "MINUTES"; timeToLive: number; }, { timeUnit: "MILLISECONDS" | "SECONDS" | "MINUTES"; timeToLive: number; }>>; id: z.ZodOptional; }, "strip", z.ZodTypeAny, { httpRequest: { method?: string | undefined; path?: string | undefined; pathParameters?: Record | undefined; queryStringParameters?: Record | undefined; headers?: Record | undefined; body?: { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; } | undefined; }; times?: { remainingTimes: number; unlimited: boolean; } | undefined; timeToLive?: { timeUnit: "MILLISECONDS" | "SECONDS" | "MINUTES"; timeToLive: number; } | undefined; httpResponse?: { statusCode?: number | undefined; headers?: Record | undefined; body?: string | Record | undefined; delay?: { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; } | undefined; } | undefined; id?: string | undefined; }, { httpRequest: { method?: string | undefined; path?: string | undefined; pathParameters?: Record | undefined; queryStringParameters?: Record | undefined; headers?: Record | undefined; body?: { type: "STRING" | "JSON" | "REGEX" | "XPATH" | "JSON_PATH"; value: string; matchType?: "STRICT" | "ONLY_MATCHING_FIELDS" | undefined; } | undefined; }; times?: { remainingTimes: number; unlimited: boolean; } | undefined; timeToLive?: { timeUnit: "MILLISECONDS" | "SECONDS" | "MINUTES"; timeToLive: number; } | undefined; httpResponse?: { statusCode?: number | undefined; headers?: Record | undefined; body?: string | Record | undefined; delay?: { value: number; timeUnit: "MILLISECONDS" | "SECONDS"; } | undefined; } | undefined; id?: string | undefined; }>; export type CreateExpectationInput = z.infer; export declare const createExpectationTool: { name: string; description: string; inputSchema: { type: "object"; properties: { httpRequest: { type: string; description: string; properties: { method: { type: string; description: string; }; path: { type: string; description: string; }; pathParameters: { type: string; description: string; }; queryStringParameters: { type: string; description: string; }; headers: { type: string; description: string; }; body: { type: string; description: string; properties: { type: { type: string; enum: string[]; }; value: { type: string; }; matchType: { type: string; enum: string[]; }; }; }; }; }; httpResponse: { type: string; description: string; properties: { statusCode: { type: string; description: string; }; headers: { type: string; description: string; }; body: { description: string; }; delay: { type: string; description: string; properties: { timeUnit: { type: string; enum: string[]; }; value: { type: string; }; }; }; }; }; times: { type: string; description: string; properties: { remainingTimes: { type: string; }; unlimited: { type: string; }; }; }; timeToLive: { type: string; description: string; properties: { timeUnit: { type: string; enum: string[]; }; timeToLive: { type: string; }; }; }; id: { type: string; description: string; }; }; required: string[]; }; }; export declare function handleCreateExpectation(client: MockServerClient, input: unknown): Promise<{ content: Array<{ type: 'text'; text: string; }>; }>; //# sourceMappingURL=create-expectation.d.ts.map