|
3 | 3 | // We export everything from both the client part of the SDK and from the server part. |
4 | 4 | // Some of the exports collide, which is not allowed, unless we redefine the colliding |
5 | 5 | // exports in this file - which we do below. |
| 6 | +import type { Client, Integration, Options, StackParser } from '@sentry/core'; |
6 | 7 | import type * as EffectLayer from 'effect/Layer'; |
7 | | -import type { EffectClientLayerOptions } from './index.client'; |
8 | | -import type { EffectServerLayerOptions } from './index.server'; |
| 8 | +import type * as clientSdk from './index.client'; |
| 9 | +import type * as serverSdk from './index.server'; |
9 | 10 |
|
10 | | -export * from './client/index'; |
11 | | -export * from './server/index'; |
| 11 | +export * from './index.client'; |
| 12 | +export * from './index.server'; |
12 | 13 |
|
13 | | -/** Creates an Effect Layer that initializes Sentry and integrates tracing, logging, and metrics. */ |
14 | | -export declare function effectLayer(options: EffectClientLayerOptions | EffectServerLayerOptions): EffectLayer.Layer<never, never, never>; |
| 14 | +export type { EffectClientLayerOptions } from './index.client'; |
| 15 | +export type { EffectServerLayerOptions } from './index.server'; |
| 16 | + |
| 17 | +export declare function effectLayer( |
| 18 | + options: clientSdk.EffectClientLayerOptions | serverSdk.EffectServerLayerOptions, |
| 19 | +): EffectLayer.Layer<never, never, never>; |
| 20 | + |
| 21 | +export declare function init(options: Options | clientSdk.BrowserOptions | serverSdk.NodeOptions): Client | undefined; |
| 22 | +export declare const linkedErrorsIntegration: typeof clientSdk.linkedErrorsIntegration; |
| 23 | +export declare const contextLinesIntegration: typeof clientSdk.contextLinesIntegration; |
| 24 | +export declare const getDefaultIntegrations: (options: Options) => Integration[]; |
| 25 | +export declare const defaultStackParser: StackParser; |
| 26 | +export declare const logger: typeof clientSdk.logger | typeof serverSdk.logger; |
0 commit comments