export declare const TRACE_SCHEMA_VERSION = 2; type TraceAttributes = Record; interface TraceSummary { attributes?: TraceAttributes; status?: string; } export declare function traceAsync(name: string, attributes: TraceAttributes, callback: () => T | Promise, summarize?: (result: T) => TraceSummary): Promise; export declare function emitDomainMessage(message: unknown): void; export declare function traceSync(name: string, attributes: TraceAttributes, callback: () => T, summarize?: (result: T) => TraceSummary): T; export declare function withTraceFile(file: string | undefined, name: string, attributes: TraceAttributes, callback: () => T | Promise): Promise; export {}; //# sourceMappingURL=trace.d.ts.map