import { RoutingMode } from "./utils/configManipulation.js"; //#region src/init/cms.d.ts /** * Intlayer configuration file candidates, ordered by the precedence used when * resolving which file to mutate. */ export declare const INTLAYER_CONFIG_FILE_CANDIDATES: readonly ['intlayer.config.ts', 'intlayer.config.mjs', 'intlayer.config.js', 'intlayer.config.cjs', 'intlayer.config.json']; /** Credentials returned by the CMS login flow (access key pair). */ export type CmsCredentials = { clientId: string; clientSecret: string; }; /** * Locates the environment file the CMS credentials should be written to. Uses * `fast-glob` to detect an existing dotenv file at the project root, preferring * a plain `.env`; falls back to `.env` (to be created) when none exist. */ export declare const findEnvFile: (rootDir: string) => Promise; /** * Persists the CMS access-key credentials to the project's environment file as * `INTLAYER_CLIENT_ID` / `INTLAYER_CLIENT_SECRET`. The target file is detected * with {@link findEnvFile} and created when missing. Returns the relative path * of the file that was written. */ export declare const writeCmsCredentialsToEnv: (rootDir: string, { clientId, clientSecret }: CmsCredentials) => Promise; /** * Enables the Intlayer visual editor in the project's configuration file: * flips `editor.enabled` to `true` and wires `clientId` / `clientSecret` to the * matching environment variables. JSON configs cannot reference `process.env`, * so they are skipped with a warning. Returns the config file that was updated, * or `undefined` when no editable config was found. */ export declare const enableEditorInConfig: (rootDir: string) => Promise; /** * Sets `routing.mode` in the project's Intlayer configuration file. Returns the * config file that was updated, or `undefined` when none was found. */ export declare const setRoutingModeInConfig: (rootDir: string, mode: RoutingMode) => Promise; /** * Sets `compiler.output` in the project's Intlayer configuration file to the * given `{{variable}}` path template. Returns the config file that was updated, * or `undefined` when none was found. */ export declare const setCompilerOutputInConfig: (rootDir: string, outputTemplate: string) => Promise; /** * Completes the CMS setup once credentials are received from the login flow: * writes them to the environment file and enables the editor in the Intlayer * configuration file. */ export declare const setupCmsCredentials: (rootDir: string, credentials: CmsCredentials) => Promise; //#endregion //# sourceMappingURL=cms.d.ts.map