import { ApiResult, TransactionsWrapper, TransactionCountWrapper, NewestTransactionWrapper, ValidationError, UnconfirmedTransactionWrapper, UnconfirmedTransaction, UnconfirmedTransactionsWrapper } from '@gny/interfaces';
import { Connection } from '../connection';
interface Query {
    limit?: number;
    offset?: number;
    id?: string;
    senderId?: string;
    senderPublicKey?: string;
    blockId?: string;
    type?: number;
    height?: number | string;
    message?: string;
}
interface CountQuery {
    senderId?: string;
    senderPublicKey?: string;
}
interface NewestFirstQuery {
    count: number;
    offset?: number;
    limit?: number;
    senderId?: string;
    senderPublicKey?: string;
}
export declare class Transaction {
    private base;
    constructor(connection: Connection);
    getCount(countQuery?: CountQuery): Promise<ApiResult<TransactionCountWrapper, "Server Error" | "child \"address\" fails because [\"address\" is not a GNY address]" | "child \"publicKey\" fails because [\"publicKey\" is not in the format of a 32 char long hex string buffer]" | "child \"secret\" fails because [\"secret\" is not BIP39 complient]" | "child \"username\" fails because [\"username\" is not an GNY username]" | "child \"issuer\" fails because [\"address\" is not a valid GNY issuer name]" | "child \"asset\" fails because [\"asset\" is not a valid GNY asset name]" | "child \"signature\" fails because [\"signature\" is not a valid GNY signature]" | "child \"positiveOrZeroBigInt\" fails because [\"positiveOrZeroBigInt\" is not a positive or zero big integer amount]" | "child \"ipv4PlusPort\" fails because [\"ipv4PlusPort\" is not a ipv4:port]" | "Invalid params">>;
    newestFirst(newestFirstQuery: NewestFirstQuery): Promise<ApiResult<NewestTransactionWrapper, "Server Error" | "child \"address\" fails because [\"address\" is not a GNY address]" | "child \"publicKey\" fails because [\"publicKey\" is not in the format of a 32 char long hex string buffer]" | "child \"secret\" fails because [\"secret\" is not BIP39 complient]" | "child \"username\" fails because [\"username\" is not an GNY username]" | "child \"issuer\" fails because [\"address\" is not a valid GNY issuer name]" | "child \"asset\" fails because [\"asset\" is not a valid GNY asset name]" | "child \"signature\" fails because [\"signature\" is not a valid GNY signature]" | "child \"positiveOrZeroBigInt\" fails because [\"positiveOrZeroBigInt\" is not a positive or zero big integer amount]" | "child \"ipv4PlusPort\" fails because [\"ipv4PlusPort\" is not a ipv4:port]" | "Invalid params">>;
    getTransactions(query: Query): Promise<ApiResult<TransactionsWrapper, "Server Error" | "child \"address\" fails because [\"address\" is not a GNY address]" | "child \"publicKey\" fails because [\"publicKey\" is not in the format of a 32 char long hex string buffer]" | "child \"secret\" fails because [\"secret\" is not BIP39 complient]" | "child \"username\" fails because [\"username\" is not an GNY username]" | "child \"issuer\" fails because [\"address\" is not a valid GNY issuer name]" | "child \"asset\" fails because [\"asset\" is not a valid GNY asset name]" | "child \"signature\" fails because [\"signature\" is not a valid GNY signature]" | "child \"positiveOrZeroBigInt\" fails because [\"positiveOrZeroBigInt\" is not a positive or zero big integer amount]" | "child \"ipv4PlusPort\" fails because [\"ipv4PlusPort\" is not a ipv4:port]" | "Invalid params">>;
    getUnconfirmedTransaction(id: string): Promise<ApiResult<UnconfirmedTransactionWrapper, "child \"address\" fails because [\"address\" is not a GNY address]" | "child \"publicKey\" fails because [\"publicKey\" is not in the format of a 32 char long hex string buffer]" | "child \"secret\" fails because [\"secret\" is not BIP39 complient]" | "child \"username\" fails because [\"username\" is not an GNY username]" | "child \"issuer\" fails because [\"address\" is not a valid GNY issuer name]" | "child \"asset\" fails because [\"asset\" is not a valid GNY asset name]" | "child \"signature\" fails because [\"signature\" is not a valid GNY signature]" | "child \"positiveOrZeroBigInt\" fails because [\"positiveOrZeroBigInt\" is not a positive or zero big integer amount]" | "child \"ipv4PlusPort\" fails because [\"ipv4PlusPort\" is not a ipv4:port]" | "Invalid params" | "Transaction not found" | "Invalid transaction body: is not a valid transaction" | "Invalid transaction body">>;
    getUnconfirmedTransactions(senderPublicKey: string, address: string): Promise<ApiResult<UnconfirmedTransactionsWrapper, ValidationError>>;
    addTransactions(transactions: UnconfirmedTransaction[]): Promise<ApiResult<TransactionsWrapper, "child \"address\" fails because [\"address\" is not a GNY address]" | "child \"publicKey\" fails because [\"publicKey\" is not in the format of a 32 char long hex string buffer]" | "child \"secret\" fails because [\"secret\" is not BIP39 complient]" | "child \"username\" fails because [\"username\" is not an GNY username]" | "child \"issuer\" fails because [\"address\" is not a valid GNY issuer name]" | "child \"asset\" fails because [\"asset\" is not a valid GNY asset name]" | "child \"signature\" fails because [\"signature\" is not a valid GNY signature]" | "child \"positiveOrZeroBigInt\" fails because [\"positiveOrZeroBigInt\" is not a positive or zero big integer amount]" | "child \"ipv4PlusPort\" fails because [\"ipv4PlusPort\" is not a ipv4:port]" | "Invalid params" | "Transaction not found" | "Invalid transaction body: is not a valid transaction" | "Invalid transaction body">>;
}
export {};
//# sourceMappingURL=transaction.d.ts.map