import { ICurrency } from "../../market/currency"; import { ITransaction } from './transaction'; import { IHoldingBase } from './holding/holding'; import { TransferType } from './transfer-type'; export interface ITransferBase { id: string; date: Date; type: TransferType; subtype: string; description: string; value: number; cost: number; status: ITransferStatus; } export interface ITransfer extends ITransferBase { holdingId: string; transactionId: string; currencyId: string; } export interface ITransferOutput extends ITransferBase { holding: IHoldingBase; transaction: ITransaction; currency: ICurrency; } export declare enum ITransferStatus { confirmed = 0, expected = 1, cancelled = 2 } export interface ITransferInput extends ITransferBase { holdingId: string; transactionId: string; currencyId: string; } export interface ITransferDeleteInput { id: string; } export declare function parseTransfer(transfer: ITransferOutput): ITransfer;