import { AztecAddress } from '@aztec/aztec.js/addresses'; import { type AztecAddressLike, type ContractArtifact, type FieldLike, type OptionLike } from '@aztec/aztec.js/abi'; import { ContractBase, ContractFunctionInteraction, type ContractMethod, type ContractStorageLayout, type DeployInstantiationOptions, DeployMethod } from '@aztec/aztec.js/contracts'; import type { Wallet } from '@aztec/aztec.js/wallet'; export declare const AuthorizationContractContractArtifact: ContractArtifact; /** * Type-safe interface for contract AuthorizationContract; */ export declare class AuthorizationContractContract extends ContractBase { private constructor(); /** * Creates a contract instance. * @param address - The deployed contract's address. * @param wallet - The wallet to use when interacting with the contract. * @returns A new Contract instance. */ static at(address: AztecAddress, wallet: Wallet): AuthorizationContractContract; /** * Creates a tx to deploy a new instance of this contract. * @param instantiation - Optional address-affecting parameters (salt, deployer / universalDeploy, publicKeys). * Salt defaults to a random value; the deployer is locked lazily from the first send-time `from`. */ static deploy(wallet: Wallet, instantiation?: DeployInstantiationOptions): DeployMethod; /** * Creates a tx to deploy a new instance of this contract using the specified constructor method. */ static deployWithOpts(opts: { method?: M; wallet: Wallet; instantiation?: DeployInstantiationOptions; }, ...args: Parameters): DeployMethod; /** * Returns this contract's artifact. */ static get artifact(): ContractArtifact; /** * Returns this contract's artifact with public bytecode. */ static get artifactForPublic(): ContractArtifact; static get storage(): ContractStorageLayout<'last_call' | 'should_revert'>; /** Type-safe wrappers for the public methods exposed by the contract. */ methods: { /** authorize_private(from: struct, amount: integer, selector: field) */ authorize_private: ((from: AztecAddressLike, amount: (bigint | number), selector: FieldLike) => ContractFunctionInteraction) & Pick; /** authorize_public(from: struct, amount: integer, selector: field) */ authorize_public: ((from: AztecAddressLike, amount: (bigint | number), selector: FieldLike) => ContractFunctionInteraction) & Pick; /** get_last_call() */ get_last_call: (() => ContractFunctionInteraction) & Pick; /** offchain_receive(messages: struct) */ offchain_receive: ((messages: { ciphertext: FieldLike[]; recipient: AztecAddressLike; tx_hash: OptionLike; anchor_block_timestamp: (bigint | number); }[]) => ContractFunctionInteraction) & Pick; /** public_dispatch(selector: field) */ public_dispatch: ((selector: FieldLike) => ContractFunctionInteraction) & Pick; /** set_should_revert(value: boolean) */ set_should_revert: ((value: boolean) => ContractFunctionInteraction) & Pick; /** sync_state(scope: struct) */ sync_state: ((scope: AztecAddressLike) => ContractFunctionInteraction) & Pick; }; }