import type { EventEnvelope } from '../events/types.js'; import type { ScenarioRoute } from './types.js'; export interface SignalBatch { id: string; subscriptionId?: string; scenarioKey: string; scenarioVersion: number; aggregationKey: string; windowStartedAt: string; windowEndsAt: string; readyAt: string; status: 'collecting' | 'ready' | 'processing' | 'processed' | 'ignored' | 'failed_retryable' | 'failed_permanent' | 'expired'; eventCount: number; createdAt: string; updatedAt: string; } export declare function addEventToBatch(input: { event: EventEnvelope; scenario: ScenarioRoute; aggregationKey: string; now?: Date; }): SignalBatch; export declare function markReadyBatches(now?: Date): number; export declare function listBatches(input?: { status?: SignalBatch['status']; limit?: number; }): SignalBatch[];