import { IntlayerConfig, RoutingConfig } from "@intlayer/types/config"; //#region src/createType/createModuleAugmentation.d.ts export declare const getTypeName: (key: string) => string; /** * Serializes the `url` rewrite rules as a type literal, so `getLocalizedPath` * and `getLocalizedUrl` can resolve a canonical path to its localized literal at * the type level. Returns an empty string when the project declares no rewrite — * the consuming types then localize every path to itself. * * Rules are emitted in their normalized form (`:param`, no locale prefix), which * is exactly what the runtime matches against. */ export declare const formatRewriteRules: (rewrite: RoutingConfig['rewrite']) => string; /** * Serializes the `routing.domains` map as a type literal, so `getLocalizedUrl` * and `getLocalizedPath` can resolve the origin of a locale — and the * suppression of its path prefix — at the type level. Returns an empty string * when the project maps no locale to a domain. * * Each entry carries the two facts the consuming types need, both computed with * the very helpers the runtime uses: * - `origin`: the normalized origin ({@link getDomainOrigin}), prepended to the * localized path when the target locale lives on another domain. * - `exclusive`: whether the locale is the only one on that hostname * ({@link isLocaleExclusiveOnDomain}), in which case the domain identifies the * locale and no path prefix is emitted. */ export declare const formatDomains: (domains: RoutingConfig['domains']) => string; /** Generate the index file merging all the types */ export declare const createModuleAugmentation: (configuration: IntlayerConfig) => Promise; //#endregion //# sourceMappingURL=createModuleAugmentation.d.ts.map