/** * @license * Copyright Stbui All Rights Reserved. * https://github.com/stbui/prophet */ declare type GetPermissions = (params?: any) => Promise; /** * * @example * * import { useEffect, useState } from 'react'; * import { useGetPermissions } from '@stbui/prophet-core'; * * const Roles = () => { * const [permissions, setPermissions] = useState([]); * const getPermissions = useGetPermissions(); * * useEffect(() => { * getPermissions().then(permissions => setPermissions(permissions)) * }, []) * * return ( * * ); * } */ declare const useGetPermissions: () => GetPermissions; export default useGetPermissions;