import * as react_jsx_runtime from 'react/jsx-runtime'; import { LinkProps as LinkProps$1, NavigateProps as NavigateProps$1, NavigateOptions as NavigateOptions$1 } from 'react-router-dom'; type To = { pathname: Pathname; search?: string; hash?: string; }; type ComponentProps> = Path extends keyof Params ? { to: Path; params: Params[Path]; } : Path extends { pathname: infer Pathname; } ? Pathname extends keyof Params ? { to: To; params: Params[Pathname]; } : { to: To; params?: never; } : { to: Path; params?: never; }; type LinkProps> = Omit & ComponentProps; type NavigateProps> = Omit & ComponentProps; type NavigateOptions> = Path extends number ? [] : Path extends keyof Params ? [NavigateOptions$1 & { params: Params[Path]; }] : Path extends { pathname: infer Pathname; } ? Pathname extends keyof Params ? [NavigateOptions$1 & { params: Params[Pathname]; }] : [NavigateOptions$1 & { params?: never; }] | [] : [NavigateOptions$1 & { params?: never; }] | []; declare const components: >() => { Link:

>({ to, params, ...props }: LinkProps) => react_jsx_runtime.JSX.Element; Navigate: >({ to, params, ...props }: LinkProps) => react_jsx_runtime.JSX.Element; }; declare const hooks: , ModalPath extends string>() => { useParams:

(path: P) => Params[P]; useNavigate: () => >(to: P_1, ...[options]: NavigateOptions) => void; useModals: () => { current: any; open: (path: ModalPath, options?: (NavigateOptions$1 & (P_2 extends keyof Params ? { at?: P_2 | undefined; params: Params[P_2]; } : { at?: P_2 | undefined; params?: undefined; })) | undefined) => void; close: (options?: (NavigateOptions$1 & (P_3 extends keyof Params ? { at?: P_3 | undefined; params: Params[P_3]; } : { at?: P_3 | undefined; params?: undefined; })) | undefined) => void; }; }; declare const utils: >() => { redirect:

(url: P, ...[options]: P extends keyof Params ? [(number | ResponseInit) & { params: Params[P]; }] : [] | [(number | ResponseInit) & { params?: undefined; }]) => Response; }; export { type LinkProps, type NavigateOptions, type NavigateProps, type To, components, hooks, utils };