import { AnchorProvider, Program } from "@project-serum/anchor"; import { Wallet } from "@project-serum/anchor/dist/cjs/provider"; import { ConfirmOptions, Connection, PublicKey } from "@solana/web3.js"; import { Escrow } from "./artifacts/escrow"; import { AccountFetcher } from "./fetcher"; import { EscrowIx } from "./ix"; /** * @category Core */ export declare class EscrowContext { readonly connection: Connection; readonly wallet: Wallet; readonly opts: ConfirmOptions; readonly program: Program; readonly provider: AnchorProvider; readonly fetcher: AccountFetcher; ixs: EscrowIx; static from(connection: Connection, wallet: Wallet, programId: PublicKey, fetcher?: AccountFetcher, opts?: ConfirmOptions): EscrowContext; static fromWorkspace(provider: AnchorProvider, program: Program, fetcher?: AccountFetcher, opts?: ConfirmOptions): EscrowContext; static withProvider(provider: AnchorProvider, programId: PublicKey, fetcher?: AccountFetcher, opts?: ConfirmOptions): EscrowContext; constructor(provider: AnchorProvider, wallet: Wallet, program: Program, fetcher: AccountFetcher, opts: ConfirmOptions); }