import { IntlayerConfig } from "@intlayer/types/config"; //#region src/emitRewrittenPages.d.ts /** * Emits a copy of every prerendered page at its rewritten ("pretty") URL. * * Astro renders pages from their canonical file-system route (`/about`, * `/en/about`), so a static build contains no file for the localized paths * declared in `routing.rewrite` (`/nosotros`). The dev and SSR proxies resolve * those paths at request time, but a static host has nothing to serve and * answers 404 — even though `getLocalizedUrl` (links, hreflang, sitemap) * already points at them. * * This mirrors each canonical page onto its localized path at the end of the * build. The canonical path is kept reachable, matching the proxy behaviour. * * @param configuration - The resolved Intlayer configuration. * @param outputDirectoryUrl - The build output directory, as given by `astro:build:done`. * @returns The list of `[from, to]` URL paths that were emitted. */ declare const emitRewrittenPages: (configuration: IntlayerConfig, outputDirectoryUrl: URL) => Promise<[from: string, to: string][]>; //#endregion export { emitRewrittenPages }; //# sourceMappingURL=emitRewrittenPages.d.ts.map