/** * Configuration reload rules * * Every rule prefix is compile-time constrained to start with a real top-level * key of `Config`, preventing silent rule drift when config sections are renamed. */ import type { Config } from './schema.js'; export type ReloadKind = 'hot' | 'restart' | 'none'; export type ConfigRootSection = keyof Config & string; export type ValidConfigReloadPrefix = ConfigRootSection | `${ConfigRootSection}.${string}`; export interface ReloadRule { prefix: ValidConfigReloadPrefix; kind: ReloadKind; description?: string; } export interface ReloadPlan { changedPaths: string[]; hotPaths: string[]; restartPaths: string[]; noopPaths: string[]; requiresRestart: boolean; requiresHotReload: boolean; } export declare const BASE_RELOAD_RULES: ReloadRule[]; export declare function matchReloadRule(path: string): ReloadRule | null; export declare function buildReloadPlan(changedPaths: string[]): ReloadPlan;