import type { ConfigManager } from '../../config/manager.js';
import type { ConfigKey } from '../../config/index.js';
import type { ManagedSettingsBundle } from '@pellux/goodvibes-sdk/platform/runtime/sandbox/types';
import { type ManagedBundleChange, type ManagedRollbackRecord, type ManagedSettingLock, type ResolvedSettingEntry, type ResolvedSettingLookup, type SettingsConflictRecord, type SettingsConflictResolution, type SettingsControlPlaneSnapshot, type SettingsLayerRecord, type SettingsSource, type SettingsSyncBundle, type SettingsSyncEvent, type StagedManagedBundle, type SyncSurface } from './control-plane-store.js';
export type { ManagedBundleChange, ManagedRollbackRecord, ManagedSettingLock, ResolvedSettingEntry, ResolvedSettingLookup, SettingsConflictRecord, SettingsConflictResolution, SettingsControlPlaneSnapshot, SettingsLayerRecord, SettingsSource, SettingsSyncBundle, SettingsSyncEvent, StagedManagedBundle, };
export declare function recordSettingsSyncEvent(event: SettingsSyncEvent, configDir: string): void;
export declare function recordSettingsSyncFailure(surface: SyncSurface, message: string, configDir: string): void;
export declare function isManagedSettingLocked(key: ConfigKey, configDir: string): boolean;
export declare function getManagedSettingLock(key: ConfigKey, configDir: string): ManagedSettingLock | null;
export declare function setManagedSettingLock(key: ConfigKey, source: string, reason: string, configDir: string): void;
export declare function clearManagedSettingLock(key: ConfigKey, configDir: string): boolean;
export declare function exportSettingsSyncBundle(configManager: ConfigManager): SettingsSyncBundle;
export declare function applySettingsSyncBundle(configManager: ConfigManager, bundle: SettingsSyncBundle, path: string): {
    appliedCount: number;
    conflictCount: number;
};
export declare function resolveSettingsSyncConflict(configManager: ConfigManager, key: ConfigKey, resolution: SettingsConflictResolution): boolean;
export declare function stageManagedSettingsBundle(configManager: ConfigManager, bundle: ManagedSettingsBundle, path: string): StagedManagedBundle;
export declare function applyStagedManagedBundle(configManager: ConfigManager, selectedKeys?: readonly ConfigKey[]): {
    rollbackToken: string;
    appliedCount: number;
    remainingCount: number;
};
export declare function rollbackManagedApply(configManager: ConfigManager, token: string): number;
export declare function getSettingsControlPlaneSnapshot(configManager: ConfigManager): SettingsControlPlaneSnapshot;
export declare function getResolvedSettingLookup(configManager: ConfigManager, key: ConfigKey): ResolvedSettingLookup | null;
export declare function formatResolvedSettingReview(configManager: ConfigManager, key: ConfigKey): string;
export declare function formatStagedManagedBundleReview(configManager: ConfigManager): string;
export declare function inspectManagedSettingsBundle(configManager: ConfigManager, bundle: ManagedSettingsBundle, path: string): string;
export declare function inspectSettingsSyncBundle(bundle: SettingsSyncBundle): string;
export declare function formatSettingsControlPlaneReview(configManager: ConfigManager): string[];
//# sourceMappingURL=control-plane.d.ts.map