export type ReloadChangeCode = 'sections-enabled' | 'sections-disabled' | 'section-added' | 'section-removed' | 'section-members' | 'section-lead' | 'section-writes' | 'section-flow' | 'section-other' | 'documents' | 'requires' | 'completion' | 'experimental' | 'root'; export interface ReloadChange { code: ReloadChangeCode; /** The key path, as the definition spells it (`sections.dev.writes`). */ path: string; message: string; /** What the author does about it. */ remedy: string; } /** The part of a definition the guard reads; an `OrgDef` fits it. */ export interface ReloadGuardDef { sections?: unknown; documents?: unknown; requires?: unknown; roles?: unknown; run_config?: unknown; } export declare const RELOAD_REMEDY = "stop and start the org to apply it (a running org does not reload this key), or revert it in the definition to keep reloading"; /** The changes in `next` against the running `live` definition that a hot reload cannot apply; empty when the * reload is allowed, and always empty when neither definition is on the sections surface. */ export declare function structuralReloadChanges(live: ReloadGuardDef, next: ReloadGuardDef): ReloadChange[]; /** The refusal text of a reload: every change, its path and the remedy once. */ export declare function reloadRefusalText(name: string, changes: readonly ReloadChange[]): string; //# sourceMappingURL=reload-guard.d.ts.map