/** * PD Config Feature Flags — PRI-304 * * Compute effective feature flags from the new PD config contract. * Replaces the old `.pd/feature-flags.yaml` computation. * Feature flags now come from `.pd/config.yaml.features`. */ import { type EffectivePdConfig, type FeatureCategory, type FeatureFlagSource } from './pd-config-types.js'; export interface EffectiveFeatureFlag { id: string; category: FeatureCategory; enabled: boolean; /** PRI-637 override provenance ('owner' | 'system'); undefined = registry default or LEGACY_UNKNOWN. */ source?: FeatureFlagSource; } export interface FeatureFlagsResult { flags: Record; /** Which MVP channels are enabled */ enabledChannels: string[]; /** Warnings from flag computation */ warnings: string[]; } export declare const MVP_CHANNEL_IDS: readonly ['prompt', 'code_tool_hook', 'defer_archive']; /** * Compute effective feature flags from the PD config. * This replaces the old `computeEffectiveFlags()` from feature-flag-contract.ts. */ export declare function computeFeatureFlagsFromConfig(effective: EffectivePdConfig): FeatureFlagsResult; /** * Check if a specific feature flag is enabled. */ export declare function isFeatureEnabled(result: FeatureFlagsResult, flagId: string): boolean; /** * Get all enabled feature flag IDs. */ export declare function getEnabledFlagIds(result: FeatureFlagsResult): string[]; //# sourceMappingURL=pd-config-feature-flags.d.ts.map