/** * Provenance lookup for correlation: resolve a ledger row's recorded * `source_event_id` to its connector event-index row. * * Kept apart from external-correlation.ts so the correlation rules stay a pure, * DB-free unit. The lookup is by EXACT primary key - the id is a hash of connector * plus source id, so there is nothing to pattern-match or guess, and a value that * does not resolve is simply not provenance. */ import type { ProvenanceRecord } from './external-correlation.js'; /** * Build a lookup over one prepared statement (a correlation pass resolves one row * per open task). Malformed metadata yields null metadata rather than throwing: the * correlation layer then falls back to the composite id or reports the ref * unresolvable, both of which are honest outcomes. */ export declare function buildProvenanceLookup(): Promise<(eventIndexId: string) => ProvenanceRecord | null>; //# sourceMappingURL=provenance-lookup.d.ts.map