/** * API Gateway Blueprint - Track API calls at the gateway level */ import { Ingestion } from '../../core/ingestion.js'; export interface TrackAPICallOptions { /** Customer ID for billing */ customerId: string; /** Additional flexible metadata */ metadata?: Record; } /** * Track API call usage */ export declare function trackAPICall(ingestion: Ingestion, options: TrackAPICallOptions): Promise; export interface CreateBatchOptions { /** Maximum batch size before auto-flush */ maxSize?: number; /** Auto-flush interval in milliseconds */ flushInterval?: number; } /** * Create a batch helper for high-volume API tracking */ export declare function createBatch(ingestion: Ingestion, config?: CreateBatchOptions): { add: (event: TrackAPICallOptions) => void; flush: () => Promise; cleanup: () => Promise; }; //# sourceMappingURL=index.d.ts.map