///
///
import * as Web3 from 'web3';
import { BigNumber } from 'bignumber.js';
import { TransactionResult } from 'truffle-contract';
import * as contracts from '@machinomy/contracts';
import Signature from './Signature';
import ChannelId from './ChannelId';
declare type RawChannel = [string, // sender
string, // receiver
BigNumber, // value
BigNumber, // settlingPeriod
BigNumber, // settlingUntil
string];
export default class ChannelTokenContract {
contract: Promise;
private cache;
private web3;
constructor(web3: Web3, ttl: number);
open(sender: string, receiver: string, value: BigNumber | number, settlementPeriod: number | BigNumber, tokenContract: string, channelId?: ChannelId | string): Promise;
claim(receiver: string, channelId: string, value: BigNumber, signature: Signature): Promise;
deposit(sender: string, channelId: string, value: BigNumber, tokenContract: string): Promise;
getState(channelId: string): Promise;
getSettlementPeriod(channelId: string): Promise;
startSettle(account: string, channelId: string): Promise;
finishSettle(account: string, channelId: string): Promise;
paymentDigest(channelId: string, value: BigNumber, tokenContract: string): Promise;
canClaim(channelId: string, payment: BigNumber, receiver: string, signature: Signature): Promise;
channelById(channelId: string): Promise;
}
export {};