import { JSONSchema, Model } from 'objection'; import { Address, Destination } from '@statechannels/wallet-core'; import Knex from 'knex'; import { Uint256, Bytes32 } from '../type-aliases'; export declare type TransferredOutEntry = { toAddress: Destination; amount: Uint256; }; interface RequiredColumns { readonly channelId: Bytes32; readonly amount: Uint256; readonly asset: Address; readonly transferredOut: TransferredOutEntry[]; } export declare class Funding extends Model implements RequiredColumns { static tableName: string; static get idColumn(): string[]; readonly channelId: Bytes32; readonly amount: Uint256; readonly asset: Address; readonly transferredOut: TransferredOutEntry[]; static get jsonSchema(): JSONSchema; static getFundingAmount(knex: Knex, channelId: Bytes32, asset: Address): Promise; static updateFunding(knex: Knex, channelId: Bytes32, amount: Uint256, asset: Address): Promise; static updateTransferredOut(knex: Knex, channelId: Bytes32, asset: Address, transferredOut: TransferredOutEntry[]): Promise; } export {}; //# sourceMappingURL=funding.d.ts.map