import { BaseTransportOptions, CheckIn, ClientOptions, Event, EventHint, MonitorConfig, ParameterizedString, SeverityLevel } from '@sentry/types'; import { BaseClient } from './baseclient'; import { Scope } from './scope'; import { SessionFlusher } from './sessionflusher'; export interface ServerRuntimeClientOptions extends ClientOptions { platform?: string; runtime?: { name: string; version?: string; }; serverName?: string; } /** * The Sentry Server Runtime Client SDK. */ export declare class ServerRuntimeClient extends BaseClient { protected _sessionFlusher: SessionFlusher | undefined; /** * Creates a new Edge SDK instance. * @param options Configuration options for this SDK. */ constructor(options: O); /** * @inheritDoc */ eventFromException(exception: unknown, hint?: EventHint): PromiseLike; /** * @inheritDoc */ eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike; /** * @inheritDoc */ captureException(exception: any, hint?: EventHint, scope?: Scope): string; /** * @inheritDoc */ captureEvent(event: Event, hint?: EventHint, scope?: Scope): string; /** * * @inheritdoc */ close(timeout?: number): PromiseLike; /** Method that initialises an instance of SessionFlusher on Client */ initSessionFlusher(): void; /** * Create a cron monitor check in and send it to Sentry. * * @param checkIn An object that describes a check in. * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want * to create a monitor automatically when sending a check in. */ captureCheckIn(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string; /** * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment * appropriate session aggregates bucket */ protected _captureRequestSession(): void; /** * @inheritDoc */ protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope, isolationScope?: Scope): PromiseLike; /** Extract trace information from scope */ private _getTraceInfoFromScope; } //# sourceMappingURL=server-runtime-client.d.ts.map