/** * Shared utilities for tool handlers. * * @module utils */ /** * Format a successful tool result as MCP text content. */ export declare function ok(data: unknown): { content: Array<{ type: "text"; text: string; }>; }; /** * Format an error tool result as MCP text content. */ export declare function err(message: string): { content: Array<{ type: "text"; text: string; }>; isError: true; }; /** * Safely format a ServiceNow error for display. */ export declare function formatError(error: unknown): string; /** * Build a query parameter map for table API requests. */ export declare function buildTableParams(opts: { query?: string; fields?: string; limit?: number; offset?: number; orderby?: string; displayValue?: string; }): Record; /** * Truncate a string if it exceeds maxLen, appending "...". */ export declare function truncate(str: string, maxLen: number): string; //# sourceMappingURL=utils.d.ts.map