export interface ComponentRecord { version: string; status: "stable" | "beta" | "experimental"; type: "folder" | "flat"; installedAt: string; updatedAt: string; history: Array<{ version: string; action: "install" | "update" | "rollback"; date: string; }>; } import type { Framework } from "./framework"; export interface DesignSystemConfig { componentsDir: string; globalCss?: string; framework: Framework; /** True when using React Server Components (Next.js App Router). */ rsc: boolean; components: Record; } export declare function loadConfig(): Promise; export declare function saveConfig(config: DesignSystemConfig): Promise; /** * Strips the `'use client'` directive from a file's content. * Used for non-RSC projects (Vite, Astro, Remix, Next.js Pages Router). */ export declare function stripUseClient(content: string): string; export declare function recordInstall(config: DesignSystemConfig, componentName: string, version: string, type: "folder" | "flat", action?: "install" | "update" | "rollback", status?: "stable" | "beta" | "experimental"): Promise; /** * Detect installed components from disk. * Supports both folder structure (ComponentName/) and flat files (ComponentName.tsx). * Also merges components tracked in design-system.json. */ export declare function detectInstalledComponents(resolvedComponentsDir: string, availableComponents: string[], config: DesignSystemConfig): Promise; //# sourceMappingURL=config.d.ts.map