import type { RuntimeHookPayload } from "../../runtime-instance-store.js"; import type { Router } from "../router.js"; type JsonRecord = Record; type RuntimeStreamSubscriber = { id: string; write: (chunk: Buffer) => boolean; end: () => void; }; type RuntimeInstanceLike = { id: string; state: string; event: string; displayName: string; lastHeartbeatAt: string | null; lastEventAt: string; runId: string | null; correlationId: string | null; initiativeId: string | null; sourceClient: string; taskId: string | null; workstreamId: string | null; progressPct: number | null; metadata: Record | null; }; type RegisterRuntimeHookRoutesDeps = { parseJsonRequest: (req: TReq) => Promise; pickString: (record: Record, keys: string[]) => string | null; pickNumber: (record: Record, keys: string[]) => number | null; pickHeaderString: (headers: Record, names: string[]) => string | null; resolveRuntimeHookToken: () => string; maskSecret: (value: string | null) => string | null; parseJsonSafe: (value: string) => T | null; sendJson: (res: TRes, status: number, payload: unknown) => void; safeErrorMessage: (err: unknown) => string; randomUUID: () => string; listRuntimeInstances: (input: { limit: number; }) => unknown; writeRuntimeSseEvent: (subscriber: RuntimeStreamSubscriber, event: string, payload: unknown) => void; runtimeStreamSubscribers: Map; ensureRuntimeStreamTimers: () => void; stopRuntimeStreamTimers: () => void; upsertRuntimeInstanceFromHook: (payload: RuntimeHookPayload) => RuntimeInstanceLike; broadcastRuntimeSse: (event: string, payload: unknown) => void; clearSnapshotResponseCache: () => void; normalizeHookPhase: (value: string | null) => "intent" | "execution" | "blocked" | "review" | "handoff" | "completed"; normalizeRuntimeSourceForReporting: (value: unknown) => string; emitActivity: (input: { initiative_id: string; run_id?: string; correlation_id?: string; source_client: string; message: string; phase: "intent" | "execution" | "blocked" | "review" | "handoff" | "completed"; progress_pct?: number; level: "info" | "warn" | "error"; metadata?: Record; }) => Promise; securityHeaders: Record; corsHeaders: Record; }; export declare function registerRuntimeHookRoutes boolean | void; end: () => void; writeHead: (statusCode: number, headers?: Record) => unknown; writableEnded?: boolean; on?: (event: string, listener: () => void) => void; }>(router: Router, TReq, TRes>, deps: RegisterRuntimeHookRoutesDeps): void; export {};