/** An nls bundle: `root` plus a flag or object per locale. */ export interface NlsBundle { root?: Record; [locale: string]: unknown; } /** Evaluates an AMD nls bundle and returns the bundle object. */ export declare function evalBundle(source: string, filename?: string): NlsBundle; /** * Locales enabled in `bundle` that match `requestedLocale` (either more or less specific). */ export declare function availableLocales(requestedLocale: string, bundle: NlsBundle | undefined): string[]; /** * Disables locales in a root bundle that the `locales` option excluded. * @returns the rewritten module source, or `undefined` when nothing changed. */ export declare function restrictRootBundle(source: string, filename: string, requestedLocales: string[] | undefined): string | undefined;