/** * P1 Feature Configuration * * Configuration-driven feature enablement for the P1 Puck integration. * Features can be toggled via config flags instead of manual code wiring. */ /** * Feature flags for P1 Puck integration UI features. * * These flags control which UI panels and behaviors are enabled. * They extend the existing P1PuckConfig props (enableRealtime, * presenceEnabled, agentModeEnabled) with flags for UI-specific features. */ export interface P1FeatureConfig { /** Enable real-time collaborative editing */ enableRealtime?: boolean; /** Enable presence tracking */ presenceEnabled?: boolean; /** Enable agent mode features */ agentModeEnabled?: boolean; /** Show document list in plugin panel (default: true) */ enableDocumentBrowser?: boolean; /** Show branch selector in plugin panel (default: true) */ enableBranchSelector?: boolean; /** Show version list in plugin panel (default: true) */ enableVersionHistory?: boolean; /** Show merge controls in plugin panel (default: true) */ enableMergeControl?: boolean; /** Enable auto-save indicator (default: true) */ enableAutoSave?: boolean; /** Show publish/checkpoint button (default: true) */ enablePublishButton?: boolean; /** Show collaborator avatars in header (default: follows presenceEnabled) */ enableCollaboratorAvatars?: boolean; /** Show agent activity banner (default: follows agentModeEnabled) */ enableAgentBanner?: boolean; /** Enable focus region highlighting (default: follows presenceEnabled) */ enableFocusHighlighting?: boolean; /** Enable content type templates (default: true) */ enableContentTypeTemplates?: boolean; } /** * Preset configurations for common setups. */ export declare const P1_PRESETS: Record<'basic' | 'collaborative' | 'full', P1FeatureConfig>; /** * Resolves feature flags with defaults. * * Some flags have defaults that follow other flags: * - enableCollaboratorAvatars defaults to presenceEnabled * - enableAgentBanner defaults to agentModeEnabled * - enableFocusHighlighting defaults to presenceEnabled * * @param config - Feature config with optional flags * @returns Resolved config with all flags set */ export declare function resolveFeatureConfig(config: P1FeatureConfig): Required;