import type { Run as V2Run } from "../_openapi_client/resources/runs/runs.js"; import type { Client } from "../client.js"; import type { Run, TracerSession } from "../schemas.js"; export declare const QueryBackend: { readonly CLICKHOUSE_ONLY: "clickhouse_only"; readonly SMITHDB_ONLY: "smithdb_only"; readonly DUAL: "dual"; }; export type QueryBackend = (typeof QueryBackend)[keyof typeof QueryBackend]; /** Which backend(s) `/info`'s `instance_flags` indicate for run/trace queries. */ export declare function getQueryBackend(instanceFlags?: Record | null): QueryBackend; export declare function v2RunToRun(run: V2Run): Run; export declare function loadTracesV2(client: Client, project: TracerSession, options: { isRoot?: boolean; }): Promise;