import type { Scope } from '@sentry/core'; import { BaseClient, SessionFlusher } from '@sentry/core'; import type { CheckIn, Event, EventHint, MonitorConfig, Severity, SeverityLevel } from '@sentry/types'; import type { NodeClientOptions } from './types'; /** * The Sentry Node SDK Client. * * @see NodeClientOptions for documentation on configuration options. * @see SentryClient for usage documentation. */ export declare class NodeClient extends BaseClient { protected _sessionFlusher: SessionFlusher | undefined; /** * Creates a new Node SDK instance. * @param options Configuration options for this SDK. */ constructor(options: NodeClientOptions); /** * @inheritDoc */ captureException(exception: any, hint?: EventHint, scope?: Scope): string | undefined; /** * @inheritDoc */ captureEvent(event: Event, hint?: EventHint, scope?: Scope): string | undefined; /** * * @inheritdoc */ close(timeout?: number): PromiseLike; /** Method that initialises an instance of SessionFlusher on Client */ initSessionFlusher(): void; /** * @inheritDoc */ eventFromException(exception: any, hint?: EventHint): PromiseLike; /** * @inheritDoc */ eventFromMessage(message: string, level?: Severity | SeverityLevel, hint?: EventHint): PromiseLike; /** * 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. * @returns A string representing the id of the check in. */ captureCheckIn(checkIn: CheckIn, monitorConfig?: MonitorConfig): string; /** * @inheritDoc */ protected _prepareEvent(event: Event, hint: EventHint, scope?: Scope): PromiseLike; /** * Method responsible for capturing/ending a request session by calling `incrementSessionStatusCount` to increment * appropriate session aggregates bucket */ protected _captureRequestSession(): void; } //# sourceMappingURL=client.d.ts.map