import { BrowserClient, BrowserConfig, EnrichmentPlugin, Event } from '@amplitude/analytics-core'; import { AmplitudeSessionReplay, SessionReplayOptions as SessionReplayBrowserOptions } from '@amplitude/session-replay-browser'; import { SessionReplayOptions } from './typings/session-replay'; export declare const DEFAULT_EVENT_PROPERTY_PREFIX = "[Amplitude]"; export declare const DEFAULT_SESSION_REPLAY_PROPERTY: string; export declare class SessionReplayPlugin implements EnrichmentPlugin { static pluginName: string; name: string; type: "enrichment"; config: BrowserConfig | null; options: SessionReplayOptions; srInitOptions: SessionReplayBrowserOptions; sessionReplay: AmplitudeSessionReplay; constructor(options?: SessionReplayOptions); setup(config: BrowserConfig, _client: BrowserClient): Promise; onSessionIdChanged(sessionId: number): Promise; onOptOutChanged(optOut: boolean): Promise; execute(event: Event): Promise; teardown(): Promise; getSessionReplayProperties(): { [key: string]: string | boolean | null; }; /** * Start or resume session replay recording. * Recording still respects sample rate, targeting, opt-out, and remote capture flags. */ start(): Promise; /** * Stop session replay recording without removing the plugin. * Call {@link SessionReplayPlugin.start} to resume. Plugin teardown still uses shutdown. */ stop(): void; } export declare const sessionReplayPlugin: (options?: SessionReplayOptions) => SessionReplayPlugin; //# sourceMappingURL=session-replay.d.ts.map