/** * Telegraph Page Tools * MCP tool definitions for page-related operations */ import { z } from 'zod'; export declare const CreatePageSchema: z.ZodObject<{ access_token: z.ZodString; title: z.ZodString; content: z.ZodString; format: z.ZodDefault>>; author_name: z.ZodOptional; author_url: z.ZodOptional; return_content: z.ZodOptional; }, "strip", z.ZodTypeAny, { access_token: string; title: string; content: string; format: "html" | "markdown"; author_name?: string | undefined; author_url?: string | undefined; return_content?: boolean | undefined; }, { access_token: string; title: string; content: string; author_name?: string | undefined; author_url?: string | undefined; return_content?: boolean | undefined; format?: "html" | "markdown" | undefined; }>; export declare const EditPageSchema: z.ZodObject<{ access_token: z.ZodString; path: z.ZodString; title: z.ZodString; content: z.ZodString; format: z.ZodDefault>>; author_name: z.ZodOptional; author_url: z.ZodOptional; return_content: z.ZodOptional; }, "strip", z.ZodTypeAny, { access_token: string; title: string; content: string; path: string; format: "html" | "markdown"; author_name?: string | undefined; author_url?: string | undefined; return_content?: boolean | undefined; }, { access_token: string; title: string; content: string; path: string; author_name?: string | undefined; author_url?: string | undefined; return_content?: boolean | undefined; format?: "html" | "markdown" | undefined; }>; export declare const GetPageSchema: z.ZodObject<{ path: z.ZodString; return_content: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; return_content?: boolean | undefined; }, { path: string; return_content?: boolean | undefined; }>; export declare const GetPageListSchema: z.ZodObject<{ access_token: z.ZodString; offset: z.ZodOptional; limit: z.ZodOptional; }, "strip", z.ZodTypeAny, { access_token: string; offset?: number | undefined; limit?: number | undefined; }, { access_token: string; offset?: number | undefined; limit?: number | undefined; }>; export declare const GetViewsSchema: z.ZodObject<{ path: z.ZodString; year: z.ZodOptional; month: z.ZodOptional; day: z.ZodOptional; hour: z.ZodOptional; }, "strip", z.ZodTypeAny, { path: string; year?: number | undefined; month?: number | undefined; day?: number | undefined; hour?: number | undefined; }, { path: string; year?: number | undefined; month?: number | undefined; day?: number | undefined; hour?: number | undefined; }>; export declare const pageTools: ({ name: string; description: string; inputSchema: { type: "object"; properties: { access_token: { type: string; description: string; }; title: { type: string; description: string; minLength: number; maxLength: number; }; content: { type: string; description: string; }; format: { type: string; description: string; enum: string[]; default: string; }; author_name: { type: string; description: string; maxLength: number; }; author_url: { type: string; description: string; maxLength: number; }; return_content: { type: string; description: string; default: boolean; }; path?: undefined; offset?: undefined; limit?: undefined; year?: undefined; month?: undefined; day?: undefined; hour?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { access_token: { type: string; description: string; }; path: { type: string; description: string; }; title: { type: string; description: string; minLength: number; maxLength: number; }; content: { type: string; description: string; }; format: { type: string; description: string; enum: string[]; default: string; }; author_name: { type: string; description: string; maxLength: number; }; author_url: { type: string; description: string; maxLength: number; }; return_content: { type: string; description: string; default: boolean; }; offset?: undefined; limit?: undefined; year?: undefined; month?: undefined; day?: undefined; hour?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { path: { type: string; description: string; }; return_content: { type: string; description: string; default: boolean; }; access_token?: undefined; title?: undefined; content?: undefined; format?: undefined; author_name?: undefined; author_url?: undefined; offset?: undefined; limit?: undefined; year?: undefined; month?: undefined; day?: undefined; hour?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { access_token: { type: string; description: string; }; offset: { type: string; description: string; minimum: number; default: number; }; limit: { type: string; description: string; minimum: number; maximum: number; default: number; }; title?: undefined; content?: undefined; format?: undefined; author_name?: undefined; author_url?: undefined; return_content?: undefined; path?: undefined; year?: undefined; month?: undefined; day?: undefined; hour?: undefined; }; required: string[]; }; } | { name: string; description: string; inputSchema: { type: "object"; properties: { path: { type: string; description: string; }; year: { type: string; description: string; minimum: number; maximum: number; }; month: { type: string; description: string; minimum: number; maximum: number; }; day: { type: string; description: string; minimum: number; maximum: number; }; hour: { type: string; description: string; minimum: number; maximum: number; }; access_token?: undefined; title?: undefined; content?: undefined; format?: undefined; author_name?: undefined; author_url?: undefined; return_content?: undefined; offset?: undefined; limit?: undefined; }; required: string[]; }; })[]; export declare function handlePageTool(name: string, args: unknown): Promise<{ content: { type: "text"; text: string; }[]; } | null>; //# sourceMappingURL=pages.d.ts.map