/** * react-fetch v1.49.0 * * Copyright (c) resourge. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ import { type FilterParamsProps, type FilterParamsReturn } from '../types/FilterParamsTypes'; /** * Bridge hook that delegates to `useFilterSearchParams` or `useStateFilterParams` * based on `paramsMode` (`'url'` | `'state'`, default `'url'`). * * - `'url'`: persists filter/sort/pagination in the browser URL (shareable, deep-linkable). * - `'state'`: keeps params in memory — ideal for modals, drawers, or React Native. * `fId` and `hash` are ignored in this mode. * * Both modes expose the same {@link FilterParamsReturn} interface, so consumer hooks * (`usePagination`, `useInfiniteLoading`) work without changes. */ export declare const useFilterParams: = Record>(props: FilterParamsProps) => FilterParamsReturn;