import { Dispatch, SetStateAction } from 'react'; import { RpcError } from '@protobuf-ts/runtime-rpc'; import { ProfileTypesResponse, QueryServiceClient } from '@parca/client'; export interface QuerySelection { expression: string; from: number; to: number; timeSelection: string; sumBy?: string[]; mergeFrom?: string; mergeTo?: string; } interface ProfileSelectorFeatures { showMetricsGraph: boolean; showSumBySelector?: boolean; showProfileTypeSelector?: boolean; disableProfileTypesDropdown?: boolean; } interface ProfileSelectorProps extends ProfileSelectorFeatures { queryClient: QueryServiceClient; closeProfile: () => void; enforcedProfileName: string; comparing: boolean; setDisplayHideMetricsGraphButton?: Dispatch>; suffix?: '_a' | '_b'; onSearchHook?: () => void; } export interface IProfileTypesResult { loading: boolean; data?: ProfileTypesResponse; error?: RpcError; } export declare const useProfileTypes: (client: QueryServiceClient, start?: number, end?: number) => IProfileTypesResult; declare const ProfileSelector: ({ queryClient, closeProfile, enforcedProfileName, comparing, showMetricsGraph, showSumBySelector, showProfileTypeSelector, setDisplayHideMetricsGraphButton, suffix, onSearchHook, }: ProfileSelectorProps) => JSX.Element; export default ProfileSelector; //# sourceMappingURL=index.d.ts.map