import { IndexListControlAreaAdditionalActionType, IndexListControlAreaViewsProps, IndexListControlAreaWordSearchProps, ListControlAreaSearchFilterType } from '../../areas/ListControl'; import { BaseResource } from '../../pages/types'; import { ViewType } from './types/views'; import type { ApiPayloadOptions } from '../../pages/fetcher'; import type { ApiSearchParams, IndexPageTemplateProps } from '../../templates/IndexPage/types'; export type UseSearchReturn
= {
currentViewId: ViewType['id'] | undefined | null;
searchQuery: P;
setCurrentView: (view?: ViewType) => void;
resetCurrentViewParams: () => void;
setFilterSearchParams: (q: Partial ;
metaSearchParams?: Partial ;
}) => void;
selectedFilterKeys: (keyof P)[];
viewsHidden: boolean;
isFiltered: boolean;
};
export declare const useSearch: ({ views, filters, wordSearch, additionalActions, apiPayloadOptions, createSummaryArea, otherQueryKeys, disableQueryManipulation, }: {
views?: IndexListControlAreaViewsProps | undefined;
filters: ListControlAreaSearchFilterType [];
wordSearch?: IndexListControlAreaWordSearchProps | undefined;
additionalActions?: IndexListControlAreaAdditionalActionType[] | undefined;
apiPayloadOptions?: ApiPayloadOptions | undefined;
createSummaryArea?: import("../../templates/IndexPage/types/summaryArea").IndexPageCreateSummaryAreaProps | undefined;
otherQueryKeys?: (keyof P)[] | undefined;
disableQueryManipulation?: boolean | undefined;
}) => UseSearchReturn ;