import { join } from '../../fs/path.mjs'; import { readFile } from './browser-utils.mjs'; import TinyI18 from './index.mjs'; export type TinyI18Options = import('./index.mjs').TinyI18Options; /** * @typedef {import('./index.mjs').TinyI18Options} TinyI18Options */ /** * TinyI18 — Professional and flexible i18n manager with dual mode (local/file), * regex-based keys, and function-based entries for advanced rendering (incl. HTML). * * - Mode "local": in-memory resources. * - Keeps only default + selected locale in memory. * - Selected locale overrides default; fallback resolves to default. * - Supports string entries, regex pattern entries, and function-backed entries. * - Safe: no dynamic code eval from files; functions in file mode are referenced by name ("$fn"). */ declare class TinyI18Browser extends TinyI18 { /** * Creates a new TinyI18 instance for managing localized strings and patterns. * * Supports two modes: * - "local": loads translations directly from provided objects. * - "file": loads translations from JSON files on demand. * * Ensures the default locale is always initialized. In "file" mode, `basePath` is required. * * @param {TinyI18Options} options - Configuration options for the instance. */ constructor(options: TinyI18Options); } declare namespace TinyI18Browser { var _writeFile: (path: string, data: string, encoding?: string) => never; export { join as _join }; export var _existsSync: false; export { readFile as _readFile }; } export default TinyI18Browser; //# sourceMappingURL=Browser-NON-DOM.d.mts.map