import { Command } from 'commander'; import { type SetupProvider } from '../utils/provider-models.js'; export type InitChannel = 'telegram' | 'discord' | 'slack' | 'webchat'; export type InitMemory = 'memory' | 'sqlite' | 'postgres'; export type PackageManager = 'pnpm' | 'npm' | 'yarn' | 'bun'; export interface InitAnswers { projectName: string; provider: SetupProvider; apiKey: string; model: string; channels: InitChannel[]; telegramToken?: string; discordToken?: string; slackToken?: string; slackSigningSecret?: string; slackAppToken?: string; memory: InitMemory; databaseUrl?: string; } export interface ScaffoldOptions { dependencyVersions: Record; /** When `pnpm`, a pnpm-workspace.yaml allowing the native dependency builds is generated */ packageManager?: PackageManager; } /** * pnpm 10.26+ skips dependency build scripts unless they are allowed, and pnpm 11 fails the * install instead. These are the native/binary packages a Cogitator project pulls in. */ export declare const PNPM_ALLOWED_BUILDS: readonly ["better-sqlite3", "esbuild", "sharp"]; export declare const DEFAULT_POSTGRES_URL = "postgresql://cogitator:cogitator@localhost:5432/cogitator"; export declare function validateProjectName(name: string): string | undefined; export declare function resolveDependencyVersions(cliPackageJson?: string): Record; export declare function detectPackageManager(userAgent?: string | undefined): PackageManager; export declare function buildPackageJson(answers: InitAnswers, options: ScaffoldOptions): string; export declare function buildEnvFile(answers: InitAnswers): string | null; export declare function buildGatewayFile(answers: InitAnswers): string; export declare function buildAgentFile(answers: InitAnswers): string; export declare function buildGitignore(answers: InitAnswers): string; export declare const TSCONFIG: { compilerOptions: { target: string; module: string; moduleResolution: string; strict: boolean; esModuleInterop: boolean; skipLibCheck: boolean; outDir: string; rootDir: string; }; include: string[]; }; export declare function buildProjectFiles(answers: InitAnswers, options: ScaffoldOptions): Record; export declare function writeProjectFiles(projectPath: string, files: Record): void; export declare const initCommand: Command; //# sourceMappingURL=init.d.ts.map