import type { NormalizedQueryThreadsInput, NormalizedTraceQueryRequest, TraceQueryCursorPlan, TraceQueryCursorValues, TraceQueryPlanOptions, TrustedThreadQueryPlan, TrustedTraceQueryDeltaTracesPlan, TrustedTraceQueryPaginatedTracesPlan, TrustedTraceQueryPlan } from './trace-query.js';
/**
 * Converts a structurally valid trace-query request into the canonical plan consumed by
 * observability storage adapters.
 *
 * @internal This is a trusted server/storage boundary, not a client-side query builder.
 */
export declare function planTraceQuery(request: NormalizedTraceQueryRequest, options?: TraceQueryPlanOptions): TrustedTraceQueryPlan;
/**
 * Converts a structurally valid thread-query request into the canonical plan consumed by
 * observability storage adapters.
 *
 * @internal This is a trusted server/storage boundary, not a client-side query builder.
 */
export declare function planThreadQuery(request: NormalizedQueryThreadsInput, options?: TraceQueryPlanOptions): TrustedThreadQueryPlan;
export declare function encodeTraceQueryCursor(plan: TraceQueryCursorPlan, values: TraceQueryCursorValues): string;
/** Wraps a storage-native watermark in a query-bound, delta-only cursor. */
export declare function encodeTraceQueryDeltaCursor(plan: TrustedTraceQueryPaginatedTracesPlan | TrustedTraceQueryDeltaTracesPlan, adapter: string, watermark: string): string;
/** Storage adapters must check cursor ownership before interpreting the native watermark. */
export declare function getTraceQueryDeltaWatermark(plan: TrustedTraceQueryDeltaTracesPlan, adapter: string): string | undefined;
/** @internal Shared query binding with property-order-independent serialization. */
export declare function digestBinding(value: unknown): string;
//# sourceMappingURL=trace-query-plan.d.ts.map