type BetterstartFramework = 'next'; interface BetterstartNextPaths { admin: string; schemas: string; pages: string; login: string; api: string; } interface BetterstartNextConfig { namespace: string; srcDir: boolean; version: number; paths: BetterstartNextPaths; } interface BetterstartFrameworkConfig { next: BetterstartNextConfig; } interface BetterstartDatabase { provider: 'postgres'; migrationsDir: string; } interface BetterstartPresets { installed: string[]; } interface BetterstartIntegrations { installed: string[]; } interface BetterstartEmailConfig { provider: string; } interface BetterstartStorageConfig { provider: string; } interface BetterstartGenerated { entities: string[]; singles: string[]; forms: string[]; } interface BetterstartConfig { framework: BetterstartFramework; cliVersion?: string; frameworkConfig: BetterstartFrameworkConfig; database: BetterstartDatabase; presets: BetterstartPresets; integrations: BetterstartIntegrations; email: BetterstartEmailConfig; storage: BetterstartStorageConfig; linter: 'oxlint' | 'biome' | 'eslint' | 'none'; generated: BetterstartGenerated; } declare function defineConfig(config: BetterstartConfig): BetterstartConfig; interface BetterstartInstalledManifest { id: string; version: string; kind: TKind; ownedFiles: string[]; envKeys: string[]; packageDependencies: string[]; devDependencies: string[]; configured: boolean; dependencies: string[]; conflicts: string[]; installedAt: string; } type BetterstartIntegrationId = string; type BetterstartIntegrationKind = 'email' | 'storage' | 'form'; type InstalledIntegrationManifest = BetterstartInstalledManifest; type BetterstartPresetId = string; type BetterstartPresetKind = 'content'; interface InstalledPresetManifest extends BetterstartInstalledManifest { ownedSchemas: string[]; } type SchemaOwner = 'core' | 'user' | `preset:${string}`; interface SchemaOwnershipIndex { version: 1; schemas: Record; } export { type BetterstartConfig, type BetterstartDatabase, type BetterstartEmailConfig, type BetterstartFramework, type BetterstartFrameworkConfig, type BetterstartGenerated, type BetterstartIntegrationId, type BetterstartIntegrationKind, type BetterstartIntegrations, type BetterstartNextConfig, type BetterstartNextPaths, type BetterstartPresetId, type BetterstartPresetKind, type BetterstartPresets, type BetterstartStorageConfig, type InstalledIntegrationManifest, type InstalledPresetManifest, type SchemaOwner, type SchemaOwnershipIndex, defineConfig };