/** * The router (DES-TRIGGER-REGISTRY-001 ยง4.6): which enabled entries a key point reaches. * * The type set is precomputed per source, so the 68% of CoreEvents that are `unitOutputDelta` are * rejected by one `Set.has` on the hot path (`wants`). The filter is JSON-path equality, an AND of * keys; an array value means "any of". */ import type { WatchEntrySource, WatchPriority } from 'wicked-crew-api-types'; import type { KeyPointInput, LoadedEntry } from './types.js'; /** True when `event` satisfies every key of `filter` (an array value: any of its members). */ export declare function matchesFilter(filter: Record, event: unknown): boolean; export declare class Router { private readonly byKey; private readonly priorityByKey; constructor(entries: readonly LoadedEntry[]); /** O(1): the input's priority when some enabled entry listens for it, else `null` (drop it). */ wants(source: WatchEntrySource, type: string): WatchPriority | null; /** The enabled entries whose `on` and `filter` the input satisfies. */ route(input: KeyPointInput): LoadedEntry[]; /** Every bus type an enabled entry listens for (the bus pull reads only these). */ busTypes(): string[]; /** Enabled entries of one source (coverage, internal ticks). */ entriesOf(source: WatchEntrySource): LoadedEntry[]; } //# sourceMappingURL=router.d.ts.map