import { type CodaliImprovementPolicyAction, type CodaliImprovementReleaseLevel, type CodaliImprovementStorageMode } from "./ImprovementPolicy.js"; export declare const CODALI_PRODUCTION_GOVERNANCE_SCHEMA_VERSION: "codali.production_governance.v1"; export declare const CODALI_PRODUCTION_GOVERNANCE_ENV_FLAGS: readonly ["CODALI_DATASET_ENABLED", "CODALI_STORAGE_MODE", "CODALI_STORAGE_UPLOAD_ENABLED", "CODALI_IMPROVEMENT_ENABLED", "CODALI_IMPROVEMENT_AUTO_TAG", "CODALI_IMPROVEMENT_AUTO_PUBLISH", "CODALI_IMPROVEMENT_TRAINING_ENABLED", "CODALI_IMPROVEMENT_SHADOW_ONLY"]; export type CodaliProductionGovernanceEnvFlag = (typeof CODALI_PRODUCTION_GOVERNANCE_ENV_FLAGS)[number]; export type CodaliProductionGovernanceStorageMode = "off" | CodaliImprovementStorageMode; export type CodaliProductionGovernanceAction = "dataset_export" | "service_gateway_write" | "improvement_analyze" | "improvement_eval_replay" | "candidate_branch" | "prerelease_canary" | "stable_publish" | "training"; export interface CodaliProductionGovernanceInput { env?: Record; releaseLevel?: CodaliImprovementReleaseLevel; internalDeployment?: boolean; privacyGatesStable?: boolean; policyActive?: boolean; ciActive?: boolean; npmProvenanceActive?: boolean; storageAuditActive?: boolean; rollbackMonitorActive?: boolean; hardGatesActive?: boolean; } export interface CodaliProductionGovernanceEffectiveConfig { datasetEnabled: boolean; storageMode: CodaliProductionGovernanceStorageMode; storageUploadEnabled: boolean; improvementEnabled: boolean; trainingEnabled: boolean; autoTagEnabled: boolean; autoPublishEnabled: boolean; shadowOnly: boolean; releaseLevel: CodaliImprovementReleaseLevel; internalDeployment: boolean; privacyGatesStable: boolean; policyActive: boolean; ciActive: boolean; npmProvenanceActive: boolean; storageAuditActive: boolean; rollbackMonitorActive: boolean; hardGatesActive: boolean; } export interface CodaliProductionGovernanceEnvFlagState { name: CodaliProductionGovernanceEnvFlag; configured: boolean; configuredValue?: string; defaultValue: string; effectiveValue: string | boolean; disablesWhen: string; disableActive: boolean; effect: string; } export interface CodaliProductionGovernanceWarning { code: string; flag: string; value?: string; message: string; } export interface CodaliProductionGovernanceDecision { action: CodaliProductionGovernanceAction; allowed: boolean; reasons: string[]; blockedBy: string[]; requiredGates: string[]; } export interface CodaliProductionRolloutStage { level: CodaliImprovementReleaseLevel; name: string; enabled: boolean; description: string; requiredGates: string[]; allowedActions: CodaliImprovementPolicyAction[]; blockedReasons: string[]; } export interface CodaliProductionGovernanceState { schemaVersion: typeof CODALI_PRODUCTION_GOVERNANCE_SCHEMA_VERSION; effective: CodaliProductionGovernanceEffectiveConfig; emergencyDisableFlags: CodaliProductionGovernanceEnvFlagState[]; stages: CodaliProductionRolloutStage[]; warnings: CodaliProductionGovernanceWarning[]; } export interface CodaliProductionGovernanceImprovementOverrides { dryRun?: boolean; storageMode?: CodaliImprovementStorageMode; exportEnabled?: boolean; trainingEnabled?: boolean; autoTagEnabled?: boolean; autoPublishEnabled?: boolean; blockedReasons: string[]; } export declare const resolveCodaliProductionGovernance: (input?: CodaliProductionGovernanceInput) => CodaliProductionGovernanceState; export declare const evaluateCodaliProductionGovernanceAction: (governance: Pick, action: CodaliProductionGovernanceAction) => CodaliProductionGovernanceDecision; export declare const buildCodaliProductionRolloutStages: (governance: Pick) => CodaliProductionRolloutStage[]; export declare const getCodaliProductionGovernanceFlag: (governance: CodaliProductionGovernanceState, flag: CodaliProductionGovernanceEnvFlag) => CodaliProductionGovernanceEnvFlagState | undefined; export declare const createCodaliProductionGovernanceImprovementOverrides: (governance: CodaliProductionGovernanceState) => CodaliProductionGovernanceImprovementOverrides; //# sourceMappingURL=ProductionGovernance.d.ts.map