import { z } from 'zod'; import type { CommandArgument } from '../utils/types.js'; /** * Control characters that are not line formatting (newline, carriage return, * tab): rejected in `multilineText` arguments, and in script file content. */ export declare const CONTROL_CHARACTERS_EXCEPT_LINE_FORMATTING: RegExp; /** * Build the Zod raw shape for a command's input arguments. * @param args The command's declared arguments * @returns A Zod raw shape keyed by argument name */ export declare function buildInputZodShape(args: CommandArgument[]): z.ZodRawShape; /** * Build the strict object schema used for both tool registration and * tools/list JSON Schema generation. Keeping the object wrapper here is * important for zero-argument tools: an empty schema must still be registered * so the MCP SDK invokes the handler as `(args, extra)` and rejects unknown * arguments. * @param args The command's declared arguments * @returns A strict Zod object schema for the command input */ export declare function buildInputZodSchema(args: CommandArgument[]): z.ZodObject; /** * Check arguments against a command's input schema, for callers that reach a * command without the `tools/call` boundary (the internal `AuthCommand`, direct * `execute()` calls). The message matches the MCP SDK's own for the same * failure, so a rejection reads the same on either path. * @param toolName The command name * @param schema The command's input schema ({@link buildInputZodSchema}) * @param values The arguments * @throws Error naming every failed argument */ export declare function assertArguments(toolName: string, schema: z.ZodType, values: Record): void; //# sourceMappingURL=toolSchema.d.ts.map