declare const en = "en"; declare const is = "is"; export declare function _createRegex(error: string): RegExp; declare const mappers: { reg: RegExp; messages: { [is]: string; [en]: string; }; }[]; export declare function _setErrorMappers(newMappers: typeof mappers): void; interface Options { lang?: "is" | "en"; fallback?: string; } export declare function getUserError(errorMessage: any, options?: Options): string; export {};