@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
12 lines (11 loc) • 652 B
TypeScript
import { FilePathPattern, FilePathPatternContext } from "@intlayer/types/filePathPattern";
//#region src/utils/parseFilePathPattern.d.ts
/**
* Parses a FilePathPattern configuration string or function to a final string path.
* Resolves context variables like `{{locale}}`, `{{key}}`, `{{fileName}}`, `{{extension}}`.
*/
declare const parseFilePathPattern: (pattern: FilePathPattern, context: FilePathPatternContext) => Promise<string>;
declare const parseStringPattern: (pattern: string, context: FilePathPatternContext) => string;
//#endregion
export { parseFilePathPattern, parseStringPattern };
//# sourceMappingURL=parseFilePathPattern.d.ts.map