UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

25 lines 1.69 kB
import type { BaseKey, MetaQuery } from "../../contexts/data/types"; import type { IResourceItem } from "../../contexts/resource/types"; export type HistoryType = "push" | "replace"; /** * `refine` uses {@link https://reactrouter.com/en/main/hooks/use-navigate#usenavigate `React Router`} and comes with all redirects out of the box. * It allows you to manage your routing operations in refine. * Using this hook, you can manage all the routing operations of your application very easily. * * @internal This is an internal hook of refine. Do not use it directly. * * @see {@link https://refine.dev/docs/api-reference/core/hooks/navigation/useNavigation} for more details. */ export declare const useNavigation: () => { create: (resource: string | IResourceItem, type?: HistoryType, meta?: MetaQuery) => void; createUrl: (resource: string | IResourceItem, meta?: MetaQuery) => string; edit: (resource: string | IResourceItem, id: BaseKey, type?: HistoryType, meta?: MetaQuery) => void; editUrl: (resource: string | IResourceItem, id: BaseKey, meta?: MetaQuery) => string; clone: (resource: string | IResourceItem, id: BaseKey, type?: HistoryType, meta?: MetaQuery) => void; cloneUrl: (resource: string | IResourceItem, id: BaseKey, meta?: MetaQuery) => string; show: (resource: string | IResourceItem, id: BaseKey, type?: HistoryType, meta?: MetaQuery) => void; showUrl: (resource: string | IResourceItem, id: BaseKey, meta?: MetaQuery) => string; list: (resource: string | IResourceItem, type?: HistoryType, meta?: MetaQuery) => void; listUrl: (resource: string | IResourceItem, meta?: MetaQuery) => string; }; //# sourceMappingURL=index.d.ts.map