//#region src/review.d.ts /** Inspection page size. This is not the analytics SDK flush queue size. */ declare const REVIEW_BATCH_SIZE = 100; interface ReviewRequest { schemaVersion: 1; sdk: string; sdkVersion: string; contentMode: string; fidelity: 'pre-transport'; request: { method: 'POST'; url: string; headers: { 'Content-Type': 'application/json'; }; body: { api_key: '[REDACTED]'; events: unknown[]; }; }; } /** Explicit zero-code switch. Debug mode does not enable review. */ declare function reviewModeFromEnv(env?: Record): boolean; /** @internal */ declare function _resetReviewWarningForTests(): void; /** * Resolve the ingestion URL a review preview should display. * * An explicit server URL wins, matching analytics clients that keep a custom * URL even when batch mode is later enabled. Zone and batch mode are used * only when the client has not published a URL. */ declare function resolveReviewUrl(configuration: object | null | undefined): string; declare class ReviewBuffer { private readonly _sdk; private readonly _contentMode; private readonly _resolveUrl; private readonly _sdkVersion; private readonly _closed; private readonly _open; constructor(_sdk: string, _contentMode: string, _resolveUrl: () => string, _sdkVersion?: string); record(event: unknown): void; /** Close the open batch, if any, and print it as one JSON line. */ close(): void; /** Deep copies of closed batches plus a snapshot of the still-open batch. */ getTraffic(): ReviewRequest[]; clear(): void; private _closeOpen; private _preview; } //#endregion export { REVIEW_BATCH_SIZE, ReviewBuffer, ReviewRequest, _resetReviewWarningForTests, resolveReviewUrl, reviewModeFromEnv }; //# sourceMappingURL=review.d.ts.map