import { Query } from '@parca/parser'; import { QuerySelection } from '../ProfileSelector'; import { ProfileSelection, ProfileSource } from '../ProfileSource'; interface UseQueryStateOptions { suffix?: '_a' | '_b'; defaultExpression?: string; defaultTimeSelection?: string; defaultFrom?: number; defaultTo?: number; comparing?: boolean; onProfileTypeChange?: () => void; } interface UseQueryStateReturn { querySelection: QuerySelection; draftSelection: QuerySelection; setDraftExpression: (expression: string) => void; setDraftTimeRange: (from: number, to: number, timeSelection: string) => void; setDraftSumBy: (sumBy: string[] | undefined) => void; setDraftProfileName: (profileName: string) => void; setDraftMatchers: (matchers: string) => void; commitDraft: (refreshedTimeRange?: { from: number; to: number; timeSelection: string; }, expression?: string) => void; profileSelection: ProfileSelection | null; profileSource: ProfileSource | null; setProfileSelection: (mergeFrom: bigint, mergeTo: bigint, query: Query) => void; sumByLoading: boolean; draftParsedQuery: Query | null; parsedQuery: Query | null; setExpressionParam: (value: string | null) => void; setSumByParam: (value: string | null) => void; setGroupByParam: (value: string[] | null) => void; } export declare const useQueryState: (options?: UseQueryStateOptions) => UseQueryStateReturn; export {}; //# sourceMappingURL=useQueryState.d.ts.map