/** * Centralized formatting utilities for IBGE MCP Server * Reduces code duplication across tools */ /** * Format a number with Brazilian locale */ export declare function formatNumber(value: number, options?: { locale?: string; minimumFractionDigits?: number; maximumFractionDigits?: number; compact?: boolean; }): string; /** * Format a percentage value */ export declare function formatPercent(value: number, options?: { decimals?: number; showSign?: boolean; }): string; /** * Format currency in Brazilian Real */ export declare function formatCurrency(value: number, options?: { showSymbol?: boolean; decimals?: number; }): string; /** * Parse a numeric string (handles Brazilian format) */ export declare function parseNumber(value: string | number): number; /** * Alignment options for table columns */ export type TableAlignment = "left" | "right" | "center"; /** * Create a Markdown table from headers and rows */ export declare function createMarkdownTable(headers: string[], rows: (string | number)[][], options?: { alignment?: TableAlignment[]; maxRows?: number; showRowCount?: boolean; }): string; /** * Create a key-value table (2 columns) */ export declare function createKeyValueTable(data: Record, options?: { keyHeader?: string; valueHeader?: string; }): string; /** * Format a date string */ export declare function formatDate(dateStr: string, options?: { format?: "short" | "long" | "iso"; }): string; /** * Build a URL query string from parameters */ export declare function buildQueryString(params: Record): string; /** * Decode common HTML entities */ export declare function decodeHtmlEntities(text: string): string; /** * Truncate text with ellipsis */ export declare function truncate(text: string, maxLength: number): string; /** * Normalize text for comparison (remove accents, lowercase) */ export declare function normalizeText(text: string): string; /** * Format a section header */ export declare function formatHeader(title: string, level?: 1 | 2 | 3 | 4): string; /** * Create a summary statistics section */ export declare function createStatsSummary(values: number[], options?: { label?: string; unit?: string; }): string; //# sourceMappingURL=formatters.d.ts.map