import { Event } from './event'; import { Response } from './response'; /** * Amplitude request payload options. */ export interface PayloadOptions { min_id_length?: number; } /** * Amplitude request payload definition. */ export interface Payload extends PayloadOptions { api_key: string; events: readonly Event[]; options?: PayloadOptions; } /** Transport used sending data to Amplitude */ export interface Transport { /** * Send the events payload to Amplitude. * * @param payload Payload with events that should be sent to Amplitude. */ sendPayload(payload: Payload): Promise; } /** JSDoc */ export interface TransportOptions { /** Server path destination. */ serverUrl: string; /** Define custom headers */ headers: { [key: string]: string; }; /** Configurable request timeout */ requestTimeoutMillis?: number; } //# sourceMappingURL=transport.d.ts.map