import { Locale } from "@intlayer/types/allLocales"; //#region src/syncPluginKit/extractKeyAndLocaleFromPath.d.ts /** * Extract the dictionary key and locale of a file path by matching it against * a mask pattern where `{{__KEY__}}` and `{{__LOCALE__}}` mark the positions * of the key and locale segments. * * Returns `null` when the path does not match the mask, or when the mask * contains no placeholder at all (no named capture group can be produced). * Missing placeholders fall back to `'index'` for the key and to * `defaultLocale` for the locale. */ export declare const extractKeyAndLocaleFromPath: (filePath: string, maskPattern: string, locales: Locale[], defaultLocale: Locale) => { key: string; locale: Locale; } | null; //#endregion //# sourceMappingURL=extractKeyAndLocaleFromPath.d.ts.map