export interface ActiveThreadRow {
    threadId: string;
    resourceId: string | null;
    runs: number;
    tokens: number;
    cost: number | null;
    costUnit: string | null;
}
/** Top Active Threads — the threads with the most agent runs in the selected
 *  range. Server-side TopK (`ORDER BY value DESC LIMIT 20`) is required so the
 *  query never returns the full thread set when cardinality is in the millions.
 *
 *  Tokens + cost are joined in from parallel breakdowns on the same `threadId`
 *  grouping so we don't need any new backend aggregation support. */
export declare function useTopActiveThreadsMetrics(): import('@tanstack/react-query').UseQueryResult<ActiveThreadRow[], Error>;
