export declare function initEvents(): Promise; export declare function shutdownEvents(): Promise; export declare function publishEvent(suffix: string, payload: object): void; export declare const events: { searchRequested(p: { query: string; profile?: string; expand?: boolean; time_range?: string; num_results: number; }): void; searchCompleted(p: { result_count: number; latency_ms: number; sources?: string[]; rerank_applied: boolean; }): void; fetchRequested(p: { url: string; max_chars: number; prefer_fit?: boolean; }): void; fetchTierMiss(p: { url: string; tier: string; reason: string; latency_ms: number; }): void; fetchTierSkipped(p: { url: string; tier: string; reason: string; }): void; fetchCompleted(p: { url: string; tier_served: string; title: string; text_len: number; latency_ms: number; source?: string; }): void; cacheHit(p: { key_type: string; namespace: string; age_seconds?: number; }): void; cacheMiss(p: { key_type: string; namespace: string; }): void; crawlRequested(p: { url: string; max_pages: number; same_domain_only: boolean; }): void; crawlCompleted(p: { url: string; strategy: string; page_count: number; latency_ms: number; cached: boolean; }): void; error(p: { stage: string; url?: string; error_type: string; message: string; }): void; };