import { Dispatch } from 'react'; import type { SandollFontsQueryParams } from '../api/types'; import type { SANDOLL_CategoryType } from '../types'; type Filter = { sort: 'trending' | 'popularity' | 'date' | 'alpha'; order: 'ASC' | 'DESC'; }; type Action = { type: 'SET_PAGE'; payload: number; } | { type: 'SET_LIMIT'; payload: number; } | { type: 'SET_SEARCH_TERM'; payload: string; } | { type: 'SET_SORT'; payload: Filter['sort']; } | { type: 'SET_ORDER'; payload: Filter['order']; } | { type: 'TOGGLE_CATEGORIES'; payload: SANDOLL_CategoryType; }; export type QueryParamDispatchFunction = Dispatch; export declare const DEFAULT_QUERY_PARAMS: SandollFontsQueryParams; export declare function useQueryParamsReducer(initialQueryParams: SandollFontsQueryParams): [SandollFontsQueryParams, Dispatch]; export {};