import { AstroIntegration } from "astro"; //#region src/index.d.ts /** * Astro integration for Intlayer. * * It handles: * 1. Preparing Intlayer resources (dictionaries) at config setup. * 2. Injecting Vite plugins for aliases, locale-based routing (middleware), and build optimizations (prune). * 3. Configuring Vite aliases for dictionary access. * 4. Emitting the prerendered pages at their rewritten (localized) URLs. * * The dev-time content watcher is not started here: the bundled * `vite-intlayer` plugin already starts one from `configureServer`, and * `watch()` subscribes anew on every call, so doing both would rebuild each * content edit twice. * * @returns An Astro integration object. * * @example * ```ts * // astro.config.mjs * import { defineConfig } from 'astro/config'; * import { intlayer } from 'astro-intlayer'; * * export default defineConfig({ * integrations: [intlayer()], * }); * ``` */ export declare const intlayer: () => AstroIntegration; //#endregion export { intlayer as default }; //# sourceMappingURL=index.d.ts.map