/**
 * Set the locale for error messages
 */
export declare function setErrorLocale(locale: string): void;
/**
 * Get the current error message locale
 */
export declare function getErrorLocale(): string;
/**
 * Register custom error messages for a locale
 * This allows overriding default messages or adding translations
 */
export declare function registerErrorMessages(messages: ErrorMessages): void;
/**
 * Clear custom error messages
 */
export declare function clearErrorMessages(): void;
/**
 * Get an error message by code, with placeholder substitution
 */
export declare function getErrorMessage(code: number, params?: Record<string, string>): ErrorMessageTemplate;
/**
 * Format an error with localized message
 */
export declare function formatLocalizedError(code: number, params?: Record<string, string>): string;
/**
 * Get error code name from numeric code
 */
export declare function getErrorCodeName(code: number): string | undefined;
/**
 * Numeric error codes for programmatic error handling
 *
 * Error code ranges:
 * - 1000-1099: Syntax errors
 * - 1100-1199: Runtime errors
 * - 1200-1299: Security errors
 * - 1300-1399: File errors
 * - 1400-1499: Configuration errors
 * - 1500-1599: Component errors
 * - 1600-1699: Expression errors
 */
export declare const ErrorCodes: {
  UNCLOSED_DIRECTIVE: 1001;
  UNCLOSED_EXPRESSION: 1002;
  INVALID_DIRECTIVE_SYNTAX: 1003;
  MALFORMED_EXPRESSION: 1004;
  UNEXPECTED_TOKEN: 1005;
  UNDEFINED_VARIABLE: 1101;
  TYPE_ERROR: 1102;
  EVALUATION_ERROR: 1103;
  INFINITE_LOOP: 1104;
  CIRCULAR_REFERENCE: 1105;
  UNSAFE_EXPRESSION: 1201;
  PATH_TRAVERSAL: 1202;
  XSS_ATTEMPT: 1203;
  CODE_INJECTION: 1204;
  DOM_API_VIOLATION: 1205;
  FILE_NOT_FOUND: 1301;
  FILE_READ_ERROR: 1302;
  INVALID_FILE_PATH: 1303;
  PERMISSION_DENIED: 1304;
  INVALID_CONFIG: 1401;
  MISSING_REQUIRED_CONFIG: 1402;
  DEPRECATED_CONFIG: 1403;
  COMPONENT_NOT_FOUND: 1501;
  INVALID_PROPS: 1502;
  COMPONENT_RENDER_ERROR: 1503;
  FILTER_NOT_FOUND: 1601;
  INVALID_FILTER_ARGS: 1602;
  EXPRESSION_TIMEOUT: 1603
};
/**
 * Error message template with placeholder support
 * Placeholders use {{name}} syntax
 */
export declare interface ErrorMessageTemplate {
  message: string
  help?: string
}
/**
 * Localized error messages by error code
 */
export type ErrorMessages = Record<number, ErrorMessageTemplate>;
export type ErrorCode = typeof ErrorCodes[keyof typeof ErrorCodes];
