import Context from '../context/context'; import Span from '../span/span'; declare type AsyncState = { spans: Span[]; valid: boolean; }; declare class ContextManager { get asyncState(): AsyncState; get currentSpan(): Span; get hasContext(): boolean | undefined; get current(): Context; get spans(): Span[]; spansDup(): Span[]; clear(): void; restore(context: Context, spans: Span[]): void; withSpan(span: Span, callback: (...args: any[]) => any, ...args: any[]): any; withSpanAwait(span: Span, callback: (...args: any[]) => any, ...args: any[]): Promise; } declare const _default: ContextManager; export default _default;