import type { RouterMatch } from "./RouterProvider.js";
/**
 * Returns the matchPath function from the configured router provider.
 *
 * @example
 * import { useMatchPath } from 'react-admin';
 *
 * const MyComponent = () => {
 *     const matchPath = useMatchPath();
 *     const match = matchPath('/posts/:id', '/posts/123');
 *     // match.params.id === '123'
 * };
 */
export declare const useMatchPath: () => ((pattern: string | {
    path: string;
    end?: boolean;
}, pathname: string) => RouterMatch | null);
//# sourceMappingURL=useMatchPath.d.ts.map