import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common"; export interface RolesFacetInterface extends Interface { getFunction(nameOrSignature: "getAccountsWithRole" | "getNumberOfAccountsWithRole" | "getRoles" | "getRolesList" | "getStaticFunctionSelectors" | "getStaticInterfaceIds" | "getStaticResolverKey" | "grantRole" | "hasRole" | "revokeRole"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Initialized" | "RoleAdded" | "RoleGranted" | "RoleRemoved" | "RoleRevoked"): EventFragment; encodeFunctionData(functionFragment: "getAccountsWithRole", values: [BytesLike]): string; encodeFunctionData(functionFragment: "getNumberOfAccountsWithRole", values: [BytesLike]): string; encodeFunctionData(functionFragment: "getRoles", values: [AddressLike]): string; encodeFunctionData(functionFragment: "getRolesList", values?: undefined): string; encodeFunctionData(functionFragment: "getStaticFunctionSelectors", values?: undefined): string; encodeFunctionData(functionFragment: "getStaticInterfaceIds", values?: undefined): string; encodeFunctionData(functionFragment: "getStaticResolverKey", values?: undefined): string; encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string; encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string; encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string; decodeFunctionResult(functionFragment: "getAccountsWithRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getNumberOfAccountsWithRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRoles", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getRolesList", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticFunctionSelectors", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticInterfaceIds", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getStaticResolverKey", data: BytesLike): Result; decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result; decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result; } export declare namespace InitializedEvent { type InputTuple = [facet: BytesLike]; type OutputTuple = [facet: string]; interface OutputObject { facet: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleAddedEvent { type InputTuple = [role: BytesLike, sender: AddressLike]; type OutputTuple = [role: string, sender: string]; interface OutputObject { role: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleGrantedEvent { type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; type OutputTuple = [role: string, account: string, sender: string]; interface OutputObject { role: string; account: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleRemovedEvent { type InputTuple = [pos: BigNumberish, sender: AddressLike]; type OutputTuple = [pos: bigint, sender: string]; interface OutputObject { pos: bigint; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoleRevokedEvent { type InputTuple = [ role: BytesLike, account: AddressLike, sender: AddressLike ]; type OutputTuple = [role: string, account: string, sender: string]; interface OutputObject { role: string; account: string; sender: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface RolesFacet extends BaseContract { connect(runner?: ContractRunner | null): RolesFacet; waitForDeployment(): Promise; interface: RolesFacetInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; getAccountsWithRole: TypedContractMethod<[ role: BytesLike ], [ string[] ], "view">; getNumberOfAccountsWithRole: TypedContractMethod<[ role: BytesLike ], [ bigint ], "view">; getRoles: TypedContractMethod<[account: AddressLike], [string[]], "view">; getRolesList: TypedContractMethod<[], [string[]], "view">; getStaticFunctionSelectors: TypedContractMethod<[], [string[]], "view">; getStaticInterfaceIds: TypedContractMethod<[], [string[]], "view">; getStaticResolverKey: TypedContractMethod<[], [string], "view">; grantRole: TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ void ], "nonpayable">; hasRole: TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ boolean ], "view">; revokeRole: TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "getAccountsWithRole"): TypedContractMethod<[role: BytesLike], [string[]], "view">; getFunction(nameOrSignature: "getNumberOfAccountsWithRole"): TypedContractMethod<[role: BytesLike], [bigint], "view">; getFunction(nameOrSignature: "getRoles"): TypedContractMethod<[account: AddressLike], [string[]], "view">; getFunction(nameOrSignature: "getRolesList"): TypedContractMethod<[], [string[]], "view">; getFunction(nameOrSignature: "getStaticFunctionSelectors"): TypedContractMethod<[], [string[]], "view">; getFunction(nameOrSignature: "getStaticInterfaceIds"): TypedContractMethod<[], [string[]], "view">; getFunction(nameOrSignature: "getStaticResolverKey"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ boolean ], "view">; getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[ role: BytesLike, account: AddressLike ], [ void ], "nonpayable">; getEvent(key: "Initialized"): TypedContractEvent; getEvent(key: "RoleAdded"): TypedContractEvent; getEvent(key: "RoleGranted"): TypedContractEvent; getEvent(key: "RoleRemoved"): TypedContractEvent; getEvent(key: "RoleRevoked"): TypedContractEvent; filters: { "Initialized(bytes32)": TypedContractEvent; Initialized: TypedContractEvent; "RoleAdded(bytes32,address)": TypedContractEvent; RoleAdded: TypedContractEvent; "RoleGranted(bytes32,address,address)": TypedContractEvent; RoleGranted: TypedContractEvent; "RoleRemoved(uint256,address)": TypedContractEvent; RoleRemoved: TypedContractEvent; "RoleRevoked(bytes32,address,address)": TypedContractEvent; RoleRevoked: TypedContractEvent; }; }