decent-sdk
Version:
SDK for the Decent API
19 lines (18 loc) • 841 B
TypeScript
import { Permissions } from '../../core/types/Api';
import { Address } from '../../core/types/Common';
import { SupportedChainId } from '../../core/types/Chains';
import { QueryReturn } from '../types';
type FetchDaoPermissionsParams = {
chainId?: SupportedChainId;
address?: Address;
};
/**
* React hook to fetch permissions for the current user within a specific DAO.
*
* @param {FetchDaoPermissionsParams} params - Object containing chainId and address
* @param {SupportedChainId} params.chainId - The EIP155 chain ID
* @param {Address} params.address - The contract address of the DAO
* @returns {QueryReturn<Permissions>} Object with { data: Permissions, isLoading: boolean, error: Error | null }
*/
export declare const useFetchDaoPermissions: (params: FetchDaoPermissionsParams) => QueryReturn<Permissions>;
export {};