import type { GatewayEmit } from "@jinn/gateway-events"; import type { JinnConfig } from "../shared/types.js"; import type { WatcherCallbacks } from "./watcher.js"; /** The two reloads that only the server can perform, since they own state it holds. */ export interface WatchDependencies { reloadConfig: () => void; /** The config as it stands after `reloadConfig`, for the callbacks that have to * act on what changed rather than only announce it. */ getConfig: () => Pick; reloadOrg: () => void; emit: GatewayEmit; } /** What the gateway does when a watched path changes. Each callback re-reads the * thing that changed and tells connected clients, so an edit on disk takes effect * without a restart. */ export declare function gatewayWatchCallbacks({ reloadConfig, getConfig, reloadOrg, emit }: WatchDependencies): WatcherCallbacks; //# sourceMappingURL=watch-callbacks.d.ts.map