/// /// import { type URL } from 'url'; import { Buffer } from 'buffer'; import { type KeyPair, type PublicKey, type CodeResult, type AccountBalance, type Args, type AccountView, type Empty, type StateItem, type AccessKeyView, type AccessKeyList } from '../types'; import { type Transaction } from '../transaction'; import { ContractState } from '../contract-state'; import { JsonRpcProvider } from '../jsonrpc'; import { type TransactionResult } from '../transaction-result'; import { type AccessKeyData, type AccountData, type Records } from '../record'; import { type NearAccount } from './near-account'; import { type NearAccountManager } from './near-account-manager'; export declare class Account implements NearAccount { private readonly _accountId; private readonly manager; constructor(_accountId: string, manager: NearAccountManager); accountView(): Promise; exists(): Promise; protected get provider(): JsonRpcProvider; get accountId(): string; availableBalance(): Promise; balance(): Promise; batch(receiver: NearAccount | string): Transaction; getKey(): Promise; setKey(keyPair?: KeyPair): Promise; createAccount(accountId: string, { keyPair, initialBalance, }?: { keyPair?: KeyPair; initialBalance?: bigint; isSubAccount?: boolean; }): Promise; createSubAccount(accountId: string, { keyPair, initialBalance, }?: { keyPair?: KeyPair; initialBalance?: bigint; isSubAccount?: boolean; }): Promise; importContract({ testnetContract, mainnetContract, withData, blockId, keyPair, initialBalance, }: { testnetContract?: string; mainnetContract?: string; withData?: boolean; keyPair?: KeyPair; initialBalance?: bigint; blockId?: number | string; }): Promise; getSubAccount(accountId: string): NearAccount; getAccount(accountId: string): NearAccount; deploy(code: string | URL | Uint8Array | Buffer): Promise; devCreateAccount({ initialBalance, keyPair, }?: { initialBalance?: bigint; keyPair?: KeyPair; }): Promise; devDeploy(wasm: string | URL | Uint8Array | Buffer, { attachedDeposit, args, gas, initialBalance, keyPair, method, isSubAccount, }?: { args?: Record | Uint8Array; attachedDeposit?: bigint; gas?: bigint; initialBalance?: bigint; keyPair?: KeyPair; method?: string; isSubAccount?: boolean; }): Promise; callRaw(contractId: NearAccount | string, methodName: string, args: Record | Uint8Array, { gas, attachedDeposit, signWithKey, }?: { gas?: bigint; attachedDeposit?: bigint; signWithKey?: KeyPair; }): Promise; call(contractId: NearAccount | string, methodName: string, args: Record | Uint8Array, { gas, attachedDeposit, signWithKey, }?: { gas?: bigint; attachedDeposit?: bigint; signWithKey?: KeyPair; }): Promise; viewRaw(method: string, args?: Args): Promise; view(method: string, args?: Args): Promise; viewCode(): Promise; viewCodeRaw(): Promise; viewState(prefix?: string | Uint8Array): Promise; viewStateRaw(prefix?: string | Uint8Array): Promise; viewAccessKey(accountId: string, publicKey: PublicKey | string): Promise; viewAccessKeys(accountId: string): Promise; patchState(key: string, value_: any, borshSchema?: any): Promise; patchStateRecords(records: Records): Promise; delete(beneficiaryId: string, keyPair?: KeyPair): Promise; makeSubAccount(accountId: string): string; subAccountOf(accountId: string): boolean; toJSON(): string; updateAccount(accountData?: Partial): Promise; updateAccessKey(key: string | PublicKey | KeyPair, access_key_data?: AccessKeyData): Promise; updateContract(binary: Buffer | string): Promise; updateData(key: string | Buffer, value: string | Buffer): Promise; transfer(accountId: string | NearAccount, amount: bigint): Promise; protected internalCreateAccount(accountId: string, { keyPair, initialBalance, isSubAccount, }?: { keyPair?: KeyPair; initialBalance?: bigint; isSubAccount?: boolean; }): Promise; private getOrCreateKey; private recordBuilder; } //# sourceMappingURL=account.d.ts.map