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 (Node + Browser). * - Mode "file": JSON files on disk via fs/path (Node only). * - 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 TinyI18Node 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 TinyI18Node { var _join: typeof import('path').join; var _existsSync: typeof import('fs').existsSync; var _readFile: (path: string, options: BufferEncoding) => Promise; var _writeFile: typeof import('fs/promises').writeFile; } export default TinyI18Node; //# sourceMappingURL=Node.d.mts.map