import { IMidwayContainer } from '@midwayjs/core'; import { type Context, DecoratorHandlerBase } from '@mwcp/share'; import { type DecoratorExecutorParam, TraceService } from './trace.service/index.trace.service.js'; /** * Span will be ended if `autoEndSpan` is true when afterReturn() or afterThrow() */ export declare class DecoratorHandlerTraceBase extends DecoratorHandlerBase { readonly applicationContext: IMidwayContainer; protected readonly traceService: TraceService; getWebContext(): Context | undefined; around(options: DecoratorExecutorParam): unknown; isEnable(options: DecoratorExecutorParam): boolean; traceError(options: DecoratorExecutorParam, error: Error, endSpan?: boolean): void; }