UNPKG

@sentry/lynx-react

Version:
83 lines 3.38 kB
import type { BaseTransportOptions, ClientOptions, Event, EventHint, Options, ParameterizedString, Scope, SeverityLevel } from '@sentry/core'; import { Client } from '@sentry/core'; export declare const WINDOW: { navigator?: { userAgent?: string | undefined; maxTouchPoints?: number | undefined; } | undefined; console: Console; PerformanceObserver?: any; Sentry?: any; onerror?: { (event: string | object, source?: string | undefined, lineno?: number | undefined, colno?: number | undefined, error?: Error | undefined): any; __SENTRY_INSTRUMENTED__?: true | undefined; } | undefined; onunhandledrejection?: { (event: unknown): boolean; __SENTRY_INSTRUMENTED__?: true | undefined; } | undefined; SENTRY_ENVIRONMENT?: string | undefined; SENTRY_DSN?: string | undefined; SENTRY_RELEASE?: { id?: string | undefined; } | undefined; SENTRY_SDK_SOURCE?: import("@sentry/core").SdkSource | undefined; _sentryDebugIds?: Record<string, string> | undefined; _sentryModuleMetadata?: Record<string, any> | undefined; _sentryEsmLoaderHookRegistered?: boolean | undefined; } & import("@sentry/core").Carrier & { document: any; }; type SharedOptions = 'dsn' | 'integrations' | 'debug' | 'beforeSend' | 'attachStacktrace' | 'transport' | 'stackParser' | 'release' | 'sendClientReports' | 'sendDefaultPii' | 'transportOptions'; /** * Configuration options for the Sentry Lynx SDK. * @see @sentry/core Options for more information. */ export type LynxOptions = Pick<Options<BaseTransportOptions>, SharedOptions | 'defaultIntegrations'>; /** * Configuration options for the Sentry Lynx SDK Client class * @see LynxClient for more information. */ export type LynxClientOptions = Pick<ClientOptions<BaseTransportOptions>, SharedOptions | '_metadata'>; /** * The Sentry Lynx SDK Client. * * @see LynxOptions for documentation on configuration options. * @see SentryClient for usage documentation. */ export declare class LynxClient extends Client<LynxClientOptions> { /** * Creates a new Lynx SDK instance. * * @param options Configuration options for this SDK. */ constructor(options: LynxClientOptions); /** * @inheritDoc */ eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event>; /** * @inheritDoc */ eventFromMessage(message: ParameterizedString, level?: SeverityLevel, hint?: EventHint): PromiseLike<Event>; /** * @inheritDoc */ protected _prepareEvent(event: Event, hint: EventHint, currentScope: Scope, isolationScope: Scope): PromiseLike<Event | null>; } /** * A builder for the SDK metadata in the options for the SDK initialization. * * Note: This function is identical to `buildMetadata` in Remix and NextJS and SvelteKit. * We don't extract it for bundle size reasons. * @see https://github.com/getsentry/sentry-javascript/pull/7404 * @see https://github.com/getsentry/sentry-javascript/pull/4196 * * If you make changes to this function consider updating the others as well. * * @param options SDK options object that gets mutated * @param names list of package names */ export declare function applySdkMetadata(options: Options, name: string, names?: string[], source?: string): void; export {}; //# sourceMappingURL=client.d.ts.map