@sentry-internal/replay
Version:
User replays for Sentry
30 lines • 981 B
TypeScript
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