import type { Encoder, DeflateEncoderStreamId, Context } from '@openobserve/browser-core'; import type { RumConfiguration } from '../domain/configuration'; import type { LifeCycle } from '../domain/lifeCycle'; /** * transport payload consist of an event and one or more attachments */ export interface TransportPayload { event: Context; [key: string]: Context; } export interface Transport { send: (data: T) => Promise; } export declare function createFormDataTransport(configuration: RumConfiguration, lifeCycle: LifeCycle, createEncoder: (streamId: DeflateEncoderStreamId) => Encoder, streamId: DeflateEncoderStreamId): { send({ event, ...attachments }: T): Promise; };