import Span from '../../trace/span/Span' ; import Segment from '../../trace/context/Segment' ; import { Component } from '../Component' ; import { ContextCarrier } from './ContextCarrier' ; export default interface Context { segment : Segment ; nSpans : number ; finished : boolean ; newLocalSpan ( operation ) : Span ; newEntrySpan ( operation , carrier ? , inherit ? ) : Span ; newExitSpan ( operation , component , inherit ? ) : Span ; start ( span ) : Context ; stop ( span ) : boolean ; async ( span ) : void ; resync ( span ) : void ; /**
     * Returns the global trace id of the current trace, if there is no trace when invoking this method,
     * "N/A" is returned.
     */ traceId ( ) : string ; }