import type { QueryThreadsResult, TraceQueryResponse, TrustedThreadQueryPlan, TrustedTraceQueryPlan } from '@mastra/core/storage'; import type { DbClient, TxClient } from '../../../client.js'; export interface CompiledPostgresTraceQuery { text: string; values: unknown[]; } export declare function compilePostgresTraceQuery(schema: string, plan: TrustedTraceQueryPlan): CompiledPostgresTraceQuery; export declare function compilePostgresThreadQuery(schema: string, plan: TrustedThreadQueryPlan): CompiledPostgresTraceQuery; export declare function runWithPostgresTraceQueryTimeout(client: DbClient, timeoutMs: number, execute: (transaction: TxClient) => Promise): Promise; export declare function queryTraces(client: DbClient, schema: string, plan: TrustedTraceQueryPlan, timeoutMs: number): Promise; export declare function queryThreads(client: DbClient, schema: string, plan: TrustedThreadQueryPlan, timeoutMs: number): Promise; //# sourceMappingURL=trace-query.d.ts.map