import { DeclaredLocales } from "./module_augmentation.js"; import { DictionaryKey } from "./dictionary.js"; //#region src/filePathPattern.d.ts type ContentExtension = `.${string}.${"json" | "js" | "ts" | "jsx" | "tsx" | "cjs" | "mjs"}`; type FilePathPatternContext = { locale?: DeclaredLocales; key: DictionaryKey; fileName: string; extension: ContentExtension | (string & {}); format: "ts" | "cjs" | "esm" | "json" | "jsonc" | "json5"; componentExtension?: ".json" | ".js" | ".ts" | ".jsx" | ".tsx" | ".cjs" | ".mjs"; componentFormat?: "ts" | "cjs" | "esm"; componentFileName?: string; componentDirPath?: string; }; /** * Syntax for resolving file paths. */ type FilePathPatternFunction = (context: FilePathPatternContext) => string | Promise; /** * Global syntax for defining file paths and patterns. * Can be a static string, a templated string (e.g. `path/{{locale}}/{{key}}{{extension}}`), * or a function evaluating the path dynamically. */ type FilePathPattern = string | FilePathPatternFunction; //#endregion export { FilePathPattern, FilePathPatternContext, FilePathPatternFunction }; //# sourceMappingURL=filePathPattern.d.ts.map