import { type UseQueryOptions, type UseQueryResult } from "@tanstack/react-query"; import type { PermissionResponse } from "../../../contexts/auth/types"; export type UsePermissionsProps = Record> = { options?: UseQueryOptions; params?: TParams; }; export type UsePermissionsReturnType = UseQueryResult; /** * `usePermissions` calls `getPermissions` method from {@link https://refine.dev/docs/api-reference/core/providers/auth-provider `authProvider`} under the hood. * * @see {@link https://refine.dev/docs/api-reference/core/hooks/auth/usePermissions} for more details. * * @typeParam TData - Result data of the query * */ export declare function usePermissions = Record>({ options, params, }: UsePermissionsProps): UsePermissionsReturnType; //# sourceMappingURL=index.d.ts.map