import type { CallToolResult } from "../types/mcp.js"; import type { PaginationParams } from "../types/shared.js"; type CrudResponse = { data?: T; error?: unknown; }; /** * Helper function to handle CrudResult responses consistently */ export declare function handleCrudResponse(response: CrudResponse, errorMessage?: string): CallToolResult; /** * Helper function to parse pagination parameters */ export declare function parsePaginationParams(args?: Record): PaginationParams; /** * Helper function to safely parse number from string */ export declare function parseId(id: unknown): number; export declare function withErrorHandler(handler: (...args: T) => Promise): (...args: T) => Promise; /** * Helper to safely cast list types */ export declare function castListType(type: unknown): "public" | "private"; /** * Helper to safely cast optin types */ export declare function castOptinType(optin: unknown): "single" | "double"; export {}; //# sourceMappingURL=typeHelpers.d.ts.map