import { NavigateOptions } from 'react-router-dom'; import { RoutesAPI } from '.././RoutesAPI'; import { QueryParams } from '.././GetParams'; import { RouteConfig } from '.././RouteConfig'; import { IfHasKeys } from '../typescript'; export type KeysWithQueryParams = { [N in keyof R]: IfHasKeys, N, never>; }[keyof R]; type StringParams = { [queryParamName: string]: string | undefined; }; export type UseQueryParams = { >(routeName: N): [QueryParams, SetURLSearchParams>]; (): [T, SetURLSearchParams]; }; type Options = NavigateOptions & { mergeParams?: boolean; }; type SetURLSearchParams

= (nextInit?: Partial

| ((prev: Partial

) => Partial

), options?: Options) => void; export declare function makeUseQueryParams(queryParamNames: RoutesAPI['queryParamNames']): UseQueryParams; export {};