UNPKG

@sentry-internal/replay

Version:
30 lines 981 B
import type { AddEventResult, EventBuffer, EventBufferType, RecordingEvent } from '../types'; /** * A basic event buffer that does not do any compression. * Used as fallback if the compression worker cannot be loaded or is disabled. */ export declare class EventBufferArray implements EventBuffer { /** All the events that are buffered to be sent. */ events: RecordingEvent[]; /** @inheritdoc */ hasCheckout: boolean; /** @inheritdoc */ waitForCheckout: boolean; private _totalSize; constructor(); /** @inheritdoc */ get hasEvents(): boolean; /** @inheritdoc */ get type(): EventBufferType; /** @inheritdoc */ destroy(): void; /** @inheritdoc */ addEvent(event: RecordingEvent): Promise<AddEventResult>; /** @inheritdoc */ finish(): Promise<string>; /** @inheritdoc */ clear(): void; /** @inheritdoc */ getEarliestTimestamp(): number | null; } //# sourceMappingURL=EventBufferArray.d.ts.map