/** * UserState — Persistent state for progressive skill pack disclosure. * * Stored at ~/.crowdlisten/state.json * * Auto-migration: * - Existing users (have auth.json or context.json): all packs active * - New users: core pack only */ export type TelemetryLevel = "off" | "anonymous" | "community"; export interface UserState { version: 2; activePacks: string[]; contextBlockCount: number; preferences: { telemetry: TelemetryLevel; proactiveSuggestions: boolean; crossProjectLearnings: boolean; }; installationId: string; onboardingCompleted: string[]; } /** * Load user state. Auto-creates with migration logic if not found. */ export declare function loadUserState(): UserState; /** * Save user state to disk. */ export declare function saveUserState(state: UserState): void; /** * Activate a skill pack. */ export declare function activatePack(packId: string): UserState; /** * Deactivate a skill pack. */ export declare function deactivatePack(packId: string): UserState;