import { z } from "zod"; /** * 【推荐】一键创建完整多维表格 * 当用户要求创建多维表格时,优先使用此工具 */ export declare const createCompleteBitableTool: { name: string; description: string; inputSchema: { name: z.ZodString; tableName: z.ZodString; fields: z.ZodArray>; }, "strip", z.ZodTypeAny, { type: number; name: string; options?: string[] | undefined; }, { type: number; name: string; options?: string[] | undefined; }>, "many">; records: z.ZodOptional, "many">>; folder: z.ZodOptional; email: z.ZodString; }; handler: (args: { name: string; tableName: string; fields: Array<{ name: string; type: number; options?: string[]; }>; records?: Array>; folder?: string; email?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 创建空白多维表格(基础版) */ export declare const createBitableTool: { name: string; description: string; inputSchema: { name: z.ZodString; folder: z.ZodOptional; email: z.ZodString; }; handler: (args: { name: string; folder?: string; email?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 创建数据表 */ export declare const createTableTool: { name: string; description: string; inputSchema: { app: z.ZodString; name: z.ZodString; fields: z.ZodOptional, "many">>; }; handler: (args: { app: string; name: string; fields?: Array<{ name: string; type: number; }>; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 列出数据表 */ export declare const listTablesTool: { name: string; description: string; inputSchema: { app: z.ZodString; }; handler: (args: { app: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 列出字段 */ export declare const listFieldsTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; }; handler: (args: { app: string; table: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 添加记录 */ export declare const addRecordTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; fields: z.ZodRecord; }; handler: (args: { app: string; table: string; fields: Record; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 批量添加记录 */ export declare const batchAddRecordsTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; records: z.ZodArray, "many">; }; handler: (args: { app: string; table: string; records: Array>; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 搜索记录 */ export declare const searchRecordsTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; filter: z.ZodOptional; conditions: z.ZodOptional; value: z.ZodOptional>; }, "strip", z.ZodTypeAny, { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }, { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { and?: boolean | undefined; conditions?: { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }[] | undefined; }, { and?: boolean | undefined; conditions?: { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }[] | undefined; }>>; sort: z.ZodOptional; }, "strip", z.ZodTypeAny, { field: string; desc?: boolean | undefined; }, { field: string; desc?: boolean | undefined; }>, "many">>; limit: z.ZodOptional; pageToken: z.ZodOptional; }; handler: (args: { app: string; table: string; filter?: { and?: boolean; conditions?: Array<{ field: string; op: string; value?: string[]; }>; }; sort?: Array<{ field: string; desc?: boolean; }>; limit?: number; pageToken?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 更新记录 */ export declare const updateRecordTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; record: z.ZodString; fields: z.ZodRecord; }; handler: (args: { app: string; table: string; record: string; fields: Record; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 删除记录 */ export declare const deleteRecordsTool: { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; records: z.ZodArray; }; handler: (args: { app: string; table: string; records: string[]; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; }; /** * 多维表格工具集合 * 排序说明: createCompleteBitableTool 放在最前面,AI 会优先选择它 */ export declare const bitableTools: ({ name: string; description: string; inputSchema: { name: z.ZodString; tableName: z.ZodString; fields: z.ZodArray>; }, "strip", z.ZodTypeAny, { type: number; name: string; options?: string[] | undefined; }, { type: number; name: string; options?: string[] | undefined; }>, "many">; records: z.ZodOptional, "many">>; folder: z.ZodOptional; email: z.ZodString; }; handler: (args: { name: string; tableName: string; fields: Array<{ name: string; type: number; options?: string[]; }>; records?: Array>; folder?: string; email?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { name: z.ZodString; folder: z.ZodOptional; email: z.ZodString; }; handler: (args: { name: string; folder?: string; email?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; name: z.ZodString; fields: z.ZodOptional, "many">>; }; handler: (args: { app: string; name: string; fields?: Array<{ name: string; type: number; }>; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; }; handler: (args: { app: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; }; handler: (args: { app: string; table: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; fields: z.ZodRecord; }; handler: (args: { app: string; table: string; fields: Record; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; records: z.ZodArray, "many">; }; handler: (args: { app: string; table: string; records: Array>; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; filter: z.ZodOptional; conditions: z.ZodOptional; value: z.ZodOptional>; }, "strip", z.ZodTypeAny, { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }, { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { and?: boolean | undefined; conditions?: { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }[] | undefined; }, { and?: boolean | undefined; conditions?: { field: string; op: "is" | "isNot" | "contains" | "doesNotContain" | "isEmpty" | "isNotEmpty"; value?: string[] | undefined; }[] | undefined; }>>; sort: z.ZodOptional; }, "strip", z.ZodTypeAny, { field: string; desc?: boolean | undefined; }, { field: string; desc?: boolean | undefined; }>, "many">>; limit: z.ZodOptional; pageToken: z.ZodOptional; }; handler: (args: { app: string; table: string; filter?: { and?: boolean; conditions?: Array<{ field: string; op: string; value?: string[]; }>; }; sort?: Array<{ field: string; desc?: boolean; }>; limit?: number; pageToken?: string; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; record: z.ZodString; fields: z.ZodRecord; }; handler: (args: { app: string; table: string; record: string; fields: Record; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; } | { name: string; description: string; inputSchema: { app: z.ZodString; table: z.ZodString; records: z.ZodArray; }; handler: (args: { app: string; table: string; records: string[]; }) => Promise<{ content: { type: "text"; text: string; }[]; }>; })[]; //# sourceMappingURL=bitable-tools.d.ts.map