import type { RemoteClawConfig } from "../config/config.js"; import type { RouteScope } from "./resolve-route.js"; export type UnmatchedAction = { action: "drop"; } | { action: "route"; agentId: string; }; /** * Centralized policy handler invoked when {@link resolveAgentRoute} returns an * unmatched result. Decides whether to silently drop the message (default) or * route it to an operator-configured catch-all agent (`routing.unmatched.agent`). * * For the drop path, fires operator-visible telemetry through the diagnostic * event bus and the structured-log helper. Downstream listeners (OTel counter, * Control UI broadcast, `/remoteclaw status` accumulator) react to the same * diagnostic event — a single emission point keeps semantics aligned across * every surface. */ export declare function handleUnmatched(scope: RouteScope, cfg: RemoteClawConfig): UnmatchedAction;