import { DecoratorExecutorParamBase } from '@mwcp/share'; import { DecoratorHandlerTraceBase } from '../decorator-handler-trace-base.js'; import type { DecoratorExecutorParam, TraceDecoratorOptions } from '../trace.service/index.trace.service.js'; import { Config } from '../types.js'; export declare class DecoratorHandlerTrace extends DecoratorHandlerTraceBase { protected readonly config: Config; genExecutorParam(options: DecoratorExecutorParamBase): DecoratorExecutorParam>; before(options: DecoratorExecutorParam): Promise | undefined; /** * Span will be ended if `autoEndSpan` is true when afterReturn() or afterThrow() */ afterReturn(options: DecoratorExecutorParam): unknown; afterThrow(options: DecoratorExecutorParam, errorExt?: unknown): never | Promise; }