import { type Hex } from "../../utils/encoding/hex.js"; /** * A map of all current thirdweb's smart contract roles */ export declare const roleMap: { readonly admin: ""; readonly asset: "ASSET_ROLE"; readonly factory: "FACTORY_ROLE"; readonly lister: "LISTER_ROLE"; readonly metadata: "METADATA_ROLE"; readonly migration: "MIGRATION_ROLE"; readonly minter: "MINTER_ROLE"; readonly pauser: "PAUSER_ROLE"; readonly revoke: "REVOKE_ROLE"; readonly signer: "SIGNER_ROLE"; readonly transfer: "TRANSFER_ROLE"; readonly unwrap: "UNWRAP_ROLE"; }; /** * @extension PERMISSIONS */ type ThirdwebContractRole = keyof typeof roleMap; export type RoleInput = ThirdwebContractRole | Hex | (string & {}); /** * Get a hex value of a smart contract role * You need the hex value to interact with the smart contracts. * @param role string * @returns hex value of the contract role * * @example * ```ts * const adminRoleHash = getRoleHash("admin"); // 0x0000000...000000 * ``` * @extension PERMISSIONS */ export declare function getRoleHash(role: RoleInput): `0x${string}`; export {}; //# sourceMappingURL=utils.d.ts.map