import type { SlopeStore } from './store.js'; import type { SlopeEvent } from './types.js'; export interface EventIngestionResult { inserted: SlopeEvent[]; duplicates: number; errors: Array<{ index: number; message: string; }>; } /** * Validate a single event payload. * Checks that required fields exist and types are valid. */ export declare function validateEventPayload(data: unknown): { valid: boolean; errors: string[]; }; /** * Ingest a batch of events into the store. * Validates each event, inserts valid ones, catches duplicate ID conflicts. */ export declare function ingestEvents(store: SlopeStore, events: unknown[]): Promise; /** * Create a framework-agnostic HTTP event handler. * Returns a function that accepts { body } and returns { status, body }. */ export declare function createEventHandler(store: SlopeStore): (req: { body: unknown; }) => Promise<{ status: number; body: unknown; }>; //# sourceMappingURL=event-ingestion.d.ts.map