import { IntlayerConfig } from "@intlayer/types/config"; import { LocalesValues } from "@intlayer/types/module_augmentation"; //#region src/utils/parseContentDeclarationFileName.d.ts export type ContentDeclarationFileName = { /** Dictionary key derived from the file name, locale suffix excluded */ key: string; /** Locale declared as a file name suffix, e.g. `about.fr.content.md` -> `fr` */ locale?: LocalesValues; }; /** * Splits a content declaration file name into its dictionary key and its * optional locale suffix. * * @example * parseContentDeclarationFileName('src/about.content.ts', configuration) * // { key: 'about' } * * parseContentDeclarationFileName('src/about.fr.content.md', configuration) * // { key: 'about', locale: 'fr' } */ export declare const parseContentDeclarationFileName: (filePath: string, configuration: IntlayerConfig) => ContentDeclarationFileName; //#endregion //# sourceMappingURL=parseContentDeclarationFileName.d.ts.map