import { TAddress } from '../../models/TAddress'; import { ClientEventsStream, TClientEventsStreamData } from '../../clients/ClientEventsStream'; import { ContractBase } from '../../contracts/ContractBase'; import { ITxLogItem } from '../../txs/receipt/ITxLogItem'; import { Web3Client } from '../../clients/Web3Client'; import { IBlockchainExplorer } from '../../explorer/IBlockchainExplorer'; import { SubjectStream } from '../../class/SubjectStream'; import type { TAbiItem } from '../../types/TAbi'; import type { TEth } from '../../models/TEth'; import type { TOverrideReturns } from '../../utils/types'; export declare class ERC2981 extends ContractBase { address: TEth.Address; client: Web3Client; explorer: IBlockchainExplorer; constructor(address?: TEth.Address, client?: Web3Client, explorer?: IBlockchainExplorer); Types: TERC2981Types; $meta: { class: string; }; royaltyInfo(tokenId: bigint, salePrice: bigint): Promise<[TAddress, bigint]>; supportsInterface(interfaceId: TEth.Hex): Promise; $call(): IERC2981TxCaller; $signed(): TOverrideReturns>; $data(): IERC2981TxData; $gas(): TOverrideReturns>; onTransaction(method: TMethod, options: Parameters[0]): SubjectStream<{ tx: TEth.Tx; block: TEth.Block; calldata: { method: TMethod; arguments: TERC2981Types['Methods'][TMethod]['arguments']; }; }>; onLog(event: keyof TEvents, cb?: (event: TClientEventsStreamData) => void): ClientEventsStream; getPastLogs(events: TEventName[], options?: TEventLogOptions>): Promise, TEventName>[]>; getPastLogs(event: TEventName, options?: TEventLogOptions>): Promise, TEventName>[]>; abi: TAbiItem[]; } type TEventLogOptions = { fromBlock?: number | Date; toBlock?: number | Date; params?: TParams; }; export type TERC2981Types = { Events: {}; Methods: { royaltyInfo: { method: "royaltyInfo"; arguments: [tokenId: bigint, salePrice: bigint]; }; supportsInterface: { method: "supportsInterface"; arguments: [interfaceId: TEth.Hex]; }; }; }; interface IERC2981TxCaller { } interface IERC2981TxData { } type TEvents = TERC2981Types['Events']; type TEventParams = Partial; export {};