import { RpcError } from '@protobuf-ts/runtime-rpc'; import { QueryRequest_ReportType, QueryResponse, QueryServiceClient } from '@parca/client'; import { ProfileSource } from './ProfileSource'; export interface IQueryResult { response: QueryResponse | null; error: RpcError | null; isLoading: boolean; refetch?: () => Promise; } interface UseQueryOptions { skip?: boolean; nodeTrimThreshold?: number; groupBy?: string[]; sourceBuildID?: string; sourceFilename?: string; sourceOnly?: boolean; invertCallStack?: boolean; sandwichByFunction?: string; protoFilters?: any[]; staleTime?: number; } export declare const useQuery: (client: QueryServiceClient, profileSource: ProfileSource, reportType: QueryRequest_ReportType, options?: UseQueryOptions) => IQueryResult; export {}; //# sourceMappingURL=useQuery.d.ts.map