import type { MethodTypeUnknown } from '@waiting/shared-types'; import type { TraceOptions } from '../trace.service/index.trace.service.js'; /** * 声明式中间件初始化装饰器 * Declarative Trace init Decorator * * @description 可用于 AutoConfiguration 类中 * @example ```ts * export class AutoConfiguration implements ILifeCycle { * \@TraceInit('INIT Foo.onReady') OR \@TraceInit({ namespace: 'Foo' }) * async onReady(container: IMidwayContainer): Promise { * // some code * } * } * ``` */ export declare function TraceInit(options?: TraceOptions): MethodDecorator & ClassDecorator;