/** * AgentGuard Spend i18n module (TypeScript). * * Resolves locale at runtime via the standard priority chain: * * 1. explicit config (passed to SpendGuardConfig or to a binding) * 2. AGENTGUARD_LOCALE environment variable * 3. operating-system / runtime locale (Intl.DateTimeFormat or process.env.LANG) * 4. en-US fallback * * Supports en-US (default), es-419 (Latin American Spanish), and pt-BR * (Brazilian Portuguese) in v0.1.4. */ export declare const SUPPORTED_LOCALES: readonly ["en-US", "es-419", "pt-BR"]; export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number]; export declare const DEFAULT_LOCALE: SupportedLocale; export declare function resolveLocale(explicit?: string): SupportedLocale; type TranslationKey = 'blocked_header' | 'field_agent' | 'field_provider' | 'field_amount' | 'field_cap' | 'field_status' | 'status_blocked' | 'field_saved' | 'check_cap_enforced' | 'check_receipt' | 'check_provider_never_charged' | 'field_policy' | 'field_reasons' | 'reasons_none' | 'window_per_call' | 'window_per_minute' | 'window_per_hour' | 'window_per_day' | 'window_per_month' | 'short_message' | 'default_soft_cap_reason' | 'default_hard_cap_reason' | 'default_minute_burst_reason' | 'default_monthly_ceiling_reason' | 'cap_exceeded_format'; export declare const TRANSLATIONS: Record>; export declare function t(key: TranslationKey, locale?: string): string; /** * Format a multi-line blocked-call trace matching the Python SDK and the * agentguard.run/the-block/ marketing screenshot. Localized per the active * locale (auto-detected unless `locale` is explicitly passed). */ export interface BlockedTraceArgs { policyId: string; provider: string; projectedCents: number; windowSpendBefore: number; reasons: string[]; triggeredCap?: { amountCents: number; window: string; }; agentId?: string; locale?: string; } export declare function formatBlockedTrace(args: BlockedTraceArgs): string; export {}; //# sourceMappingURL=i18n.d.ts.map