/** * Standardized error handling for IBGE MCP Server */ export declare const IBGE_ERROR_CODES: Record; export interface IbgeError { code?: number; message: string; tool: string; params?: Record; suggestion?: string; relatedTools?: string[]; } /** * Format a standardized error message */ export declare function formatError(error: IbgeError): string; /** * Parse HTTP error and return formatted message */ export declare function parseHttpError(error: Error, tool: string, params?: Record, relatedTools?: string[]): string; /** * Common validation errors */ export declare const ValidationErrors: { invalidCode: (code: string, tool: string, validFormats: string) => string; notFound: (item: string, tool: string, searchTool?: string) => string; emptyResult: (tool: string, suggestion?: string) => string; invalidDate: (value: string, tool: string) => string; invalidPeriod: (period: string, tool: string, validPeriods?: string) => string; invalidTerritory: (level: string, tool: string, validLevels?: string) => string; }; /** * Timeout error handler */ export declare function timeoutError(tool: string, timeoutMs: number, relatedTools?: string[]): string; /** * Network error handler */ export declare function networkError(tool: string): string; //# sourceMappingURL=errors.d.ts.map