/** * HTTP transport for the observer queue. * * Two send paths: * - send(batch) — async fetch. Used for normal flushes. Throws on * non-2xx; sets the FlushError.permanent flag for 4xx so the queue * stops trying. * - sendBeacon(batch) — fire-and-forget via navigator.sendBeacon. * Used on `pagehide` so the last batch survives navigation. No * error path — beacon failure is invisible by design. * * Auth: same syn_ Bearer token mechanism as /stream. The token is read * via a getter so SDK tokens that rotate live get refreshed naturally. */ import type { ObservationEvent } from './allowlist'; export interface TransportOptions { url: string; token: () => string; getDistinctId: () => string | null; getSessionId: () => string | null; } export interface Transport { send(batch: ObservationEvent[]): Promise; sendBeacon(batch: ObservationEvent[]): boolean; } export declare function createTransport(opts: TransportOptions): Transport; //# sourceMappingURL=transport.d.ts.map