/** * Remove expired dispatch state files from the given directory. * * Scans for files matching `dispatch-*.json` and `dispatch-*.json.lock`, * removing any whose mtime exceeds the retention period. * * This function is designed to be called fire-and-forget at startup. * It never throws — all errors are logged as warnings. * * @param stateDir Absolute path to the state directory * @param retentionMs How long to keep files (default: 7 days) * @returns Number of files removed */ export declare function cleanExpiredState(stateDir: string, retentionMs?: number): Promise<{ removed: number; }>; //# sourceMappingURL=state-gc.d.ts.map