export interface ResourceThreadsRow {
    resourceId: string;
    threadCount: number;
    tokens: number;
    cost: number | null;
    costUnit: string | null;
}
/** Top Resources by Thread Count — the resources with the most distinct threads
 *  in the selected range. Uses `count_distinct(threadId)` per `resourceId`,
 *  with server-side TopK (`ORDER BY value DESC LIMIT 20`).
 *
 *  Tokens + cost are joined in from parallel breakdowns on `resourceId` so the
 *  table can show cost/usage without a separate backend aggregation. */
export declare function useTopResourcesByThreadsMetrics(): import('@tanstack/react-query').UseQueryResult<ResourceThreadsRow[], Error>;
