import { r as DaoCoreConfig } from "./types.daocore-kp8IyikH.js";
//#region src/config/runtime-snapshot.d.ts
type RuntimeConfigSnapshotRefreshOptions = {
  includeAuthStoreRefs?: boolean;
};
type RuntimeConfigSnapshotRefreshParams = RuntimeConfigSnapshotRefreshOptions & {
  sourceConfig: DaoCoreConfig;
};
type ConfigWriteAfterWrite = {
  mode: "auto";
} | {
  mode: "restart";
  reason: string;
} | {
  mode: "none";
  reason: string;
};
type ConfigWriteFollowUp = {
  mode: "auto";
  requiresRestart: false;
} | {
  mode: "none";
  reason: string;
  requiresRestart: false;
} | {
  mode: "restart";
  reason: string;
  requiresRestart: true;
};
declare function resolveConfigWriteAfterWrite(afterWrite?: ConfigWriteAfterWrite): ConfigWriteAfterWrite;
declare function resolveConfigWriteFollowUp(afterWrite?: ConfigWriteAfterWrite): ConfigWriteFollowUp;
type RuntimeConfigSnapshotRefreshHandler = {
  refresh: (params: RuntimeConfigSnapshotRefreshParams) => boolean | Promise<boolean>;
  clearOnRefreshFailure?: () => void;
};
type RuntimeConfigWriteNotification = {
  configPath: string;
  sourceConfig: DaoCoreConfig;
  runtimeConfig: DaoCoreConfig;
  persistedHash: string;
  revision: number;
  fingerprint: string;
  sourceFingerprint: string | null;
  writtenAtMs: number;
  afterWrite?: ConfigWriteAfterWrite;
};
type RuntimeConfigSnapshotMetadata = {
  revision: number;
  fingerprint: string;
  sourceFingerprint: string | null;
  updatedAtMs: number;
};
declare function hashRuntimeConfigValue(value: DaoCoreConfig): string;
declare function setRuntimeConfigSnapshot(config: DaoCoreConfig, sourceConfig?: DaoCoreConfig): void;
declare function resetConfigRuntimeState(): void;
declare function clearRuntimeConfigSnapshot(): void;
declare function getRuntimeConfigSnapshot(): DaoCoreConfig | null;
declare function getRuntimeConfigSourceSnapshot(): DaoCoreConfig | null;
declare function getRuntimeConfigSnapshotMetadata(): RuntimeConfigSnapshotMetadata | null;
declare function resolveRuntimeConfigCacheKey(config: DaoCoreConfig): string;
declare function selectApplicableRuntimeConfig(params: {
  inputConfig?: DaoCoreConfig;
  runtimeConfig?: DaoCoreConfig | null;
  runtimeSourceConfig?: DaoCoreConfig | null;
}): DaoCoreConfig | undefined;
declare function setRuntimeConfigSnapshotRefreshHandler(refreshHandler: RuntimeConfigSnapshotRefreshHandler | null): void;
//#endregion
export { setRuntimeConfigSnapshotRefreshHandler as _, RuntimeConfigWriteNotification as a, getRuntimeConfigSnapshotMetadata as c, resetConfigRuntimeState as d, resolveConfigWriteAfterWrite as f, setRuntimeConfigSnapshot as g, selectApplicableRuntimeConfig as h, RuntimeConfigSnapshotRefreshOptions as i, getRuntimeConfigSourceSnapshot as l, resolveRuntimeConfigCacheKey as m, ConfigWriteFollowUp as n, clearRuntimeConfigSnapshot as o, resolveConfigWriteFollowUp as p, RuntimeConfigSnapshotMetadata as r, getRuntimeConfigSnapshot as s, ConfigWriteAfterWrite as t, hashRuntimeConfigValue as u };