import type { PreviewParams, GraphReference } from '../graph/index.js'; /** * Span for fragment generation at the root level. * Only created when fragments are actually generated (not when cached). */ export declare function startFragmentSpan(contentType: string, damEnabled: boolean, threshold: number, suffix: string): import("@opentelemetry/api").Span; /** * Span for single content query generation. * Only created when queries are actually generated (not when cached). */ export declare function startSingleQuerySpan(contentType: string, damEnabled: boolean): import("@opentelemetry/api").Span; /** * Span for multiple content query generation. * Only created when queries are actually generated (not when cached). */ export declare function startMultipleQuerySpan(contentType: string, damEnabled: boolean): import("@opentelemetry/api").Span; /** * Wraps request operation in span. */ export declare function withRequestSpan(graphUrl: string, userAgent: string, cache: boolean, slot: string, hasPreviewToken: boolean, fn: (span: any) => Promise): Promise; /** * Wraps getContentByPath in span. */ export declare function withGetContentByPathSpan(path: string, cache: boolean, fn: (span: any) => Promise): Promise; /** * Wraps getPreviewContent in span. */ export declare function withGetPreviewContentSpan(params: PreviewParams, fn: (span: any) => Promise): Promise; /** * Wraps getContent in span. */ export declare function withGetContentSpan(ref: GraphReference, fn: (span: any) => Promise): Promise; /** * Creates span for component resolution in ComponentRegistry. */ export declare function startComponentResolveSpan(contentType: string, tag?: string): import("@opentelemetry/api").Span; /** * Wraps a React component in span. */ export declare function withReactComponentSpan(contentType: string, hasTag: boolean, hasDisplaySettings: boolean, fn: (span: any) => Promise): Promise;