import { ChannelConstants, Destination, OpenChannel } from '@statechannels/wallet-core'; import { Payload } from '@statechannels/wire-format'; import { LedgerRequestStatus, RichLedgerRequest } from '../../../models/ledger-request'; import { TestChannel, Bals, SignedBy } from './test-channel'; interface TestChannelArgs { aBal?: number; bBal?: number; } /** * A two-party ledger channel between Alice and Bob, with state history. * * For testing purposes. * */ export declare class TestLedgerChannel extends TestChannel { static create(args: TestChannelArgs): TestLedgerChannel; private constructor(); get openChannelObjective(): OpenChannel; get isLedger(): boolean; get channelConstants(): ChannelConstants; /** * Gives the nth state in the history, signed by the provided participant(s) -- default is both */ wirePayload(n: number, bals?: Bals, signedBy?: SignedBy): Payload; fundingRequest({ channelToBeFunded, amtA, amtB, status, missedOps, lastSeen, }: RequestParams): RichLedgerRequest; defundingRequest({ channelToBeFunded, amtA, amtB, status, missedOps, lastSeen, }: RequestParams): RichLedgerRequest; } interface RequestParams { channelToBeFunded: Destination; amtA: number; amtB: number; status: LedgerRequestStatus; missedOps?: number; lastSeen?: number; } export {}; //# sourceMappingURL=test-ledger-channel.d.ts.map