import * as react from 'react';
import { AnchorHTMLAttributes, ElementType, ReactNode } from 'react';

interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
    to: string;
}
interface RouterAdapter {
    currentPath: string;
    currentSearch?: string;
    navigate: (to: string) => void;
    Link: ElementType<LinkProps>;
}
declare function useRouterContext(): RouterAdapter;
declare function RouterProvider({ value, children }: {
    value: RouterAdapter;
    children: ReactNode;
}): react.FunctionComponentElement<react.ProviderProps<RouterAdapter | null>>;

export { RouterProvider, useRouterContext };
export type { LinkProps, RouterAdapter };
