import { type DownloadTemplateResult } from 'giget'; import { type PackageManager } from 'nypm'; import type { InitFlags } from '../../commands/init.js'; export declare function init({ dir, flags }: { dir: string; flags: InitFlags; }): Promise<{ directusDir: string; frontendDir: string; template: DownloadTemplateResult; }>; type DependencyInstaller = (options: { cwd: string; packageManager?: PackageManager; silent: boolean; }) => Promise; type InstallFrontendDependenciesOptions = { frontendDir: string; install?: DependencyInstaller; onSkip?: () => void; packageManager: null | PackageManager; warn?: (message: string) => void; }; export declare function installFrontendDependencies({ frontendDir, install, onSkip, packageManager, warn, }: InstallFrontendDependenciesOptions): Promise; /** * Set a key in .env file contents. Replaces the first active assignment (dropping any duplicates), * otherwise the first commented-out one, otherwise appends it. * @param contents - The .env file contents * @param key - The variable name * @param value - The value to set * @returns The updated .env file contents */ export declare function setEnvValue(contents: string, key: string, value: string): string; export {};