import { RoutingMode } from "./utils/configManipulation.js"; import "./utils/index.js"; //#region src/init/index.d.ts /** * Resolves the default dev-server URL of the detected framework, used as the * `editor.applicationURL` of the generated configuration file. Frameworks that * embed Vite (Astro, SvelteKit, …) are checked before the bare Vite fallback so * their own dev port wins. */ export declare const getDefaultApplicationURL: (dependencies: Record) => string; /** * How the interactive init organizes autogenerated content (compiler output / * autofill): * - `per-component` — multilingual `.content` files co-located with components * (the configuration template default). * - `centralized` — per-locale JSON dictionaries under `/locales/{locale}/`. * - `json-namespaces` — plain per-locale JSON namespace files kept in sync * through `@intlayer/sync-json-plugin`. */ export type ContentStrategy = 'per-component' | 'centralized' | 'json-namespaces'; /** * OPTIONS */ export type InitOptions = { noGitignore?: boolean; /** Skip scaffolding the `fill` and `test` GitHub Actions workflows. */ noGithubActions?: boolean; /** * Skip installing missing Intlayer dependencies and upgrading outdated ones. */ noInstallPackages?: boolean; /** Skip adding the Intlayer extension to `.vscode/extensions.json`. */ noVscodeExtension?: boolean; /** Skip writing the Intlayer LSP configuration to `.vscode/settings.json`. */ noLsp?: boolean; /** Skip enabling the Intlayer lint rules (ESLint / oxlint). */ noEslint?: boolean; /** * Skip framework-specific scaffolding (middleware/proxy, providers in * layout/page, example content). Defaults to enabled. */ noFrameworkSetup?: boolean; /** * Version that outdated Intlayer packages should be upgraded to (typically the * running CLI version). When omitted, installed packages are left untouched and * only missing ones are installed. */ upgradeToVersion?: string; /** * Locale routing strategy to write to `routing.mode` in the generated/existing * Intlayer configuration file. When omitted, the configuration default * (`prefix-no-default`) is kept. */ routingMode?: RoutingMode; /** * Content organization strategy chosen by the interactive init prompt. Drives * the `compiler.output` template (`centralized`) or the injection of the * syncJSON plugin (`json-namespaces`). When omitted (or `per-component`), the * configuration template default is kept. */ contentStrategy?: ContentStrategy; }; /** * MAIN LOGIC */ export declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise; //#endregion //# sourceMappingURL=index.d.ts.map