UNPKG

@intlayer/chokidar

Version:

Uses chokidar to scan and build Intlayer declaration files into dictionaries based on Intlayer configuration.

15 lines (14 loc) 1.11 kB
import { DictionariesStatus } from "./loadDictionaries.js"; import { IntlayerConfig } from "@intlayer/types/config"; import { Dictionary } from "@intlayer/types/dictionary"; //#region src/loadDictionaries/loadContentDeclaration.d.ts declare const formatLocalDictionaries: (dictionariesRecord: Record<string, Dictionary>, configuration: IntlayerConfig) => Dictionary[]; declare const ensureIntlayerBundle: (configuration: IntlayerConfig) => Promise<string>; type LoadContentDeclarationOptions = { logError?: boolean; }; declare const loadContentDeclaration: (path: string, configuration: IntlayerConfig, bundleFilePath?: string, options?: LoadContentDeclarationOptions) => Promise<Dictionary | undefined>; declare const loadContentDeclarations: (contentDeclarationFilePath: string[], configuration: IntlayerConfig, onStatusUpdate?: (status: DictionariesStatus[]) => void, options?: LoadContentDeclarationOptions) => Promise<Dictionary[]>; //#endregion export { ensureIntlayerBundle, formatLocalDictionaries, loadContentDeclaration, loadContentDeclarations }; //# sourceMappingURL=loadContentDeclaration.d.ts.map