import { Decimal } from "JSBD";
export declare class currency {
    JSBDVal: Decimal;
    value: string;
    private settings;
    constructor(value: number | string | Decimal | bigint | currency, opts?: {
        symbol?: string;
        separator?: string;
        decimal?: string;
        precision?: number;
        pattern?: string;
        negativePattern?: string;
        formatter?: (i: string) => string;
        showTail0?: boolean;
        strict?: boolean;
        fromCents?: boolean;
    });
    private static toChineseMoney;
    private parseInput;
    private testValid;
    add(val: number | string | currency | Decimal | BigInt): currency;
    subtract(val: number | string | currency | Decimal | BigInt): currency;
    multiply(val: number | string | currency | Decimal | BigInt): currency;
    divide(val: number | string | currency | Decimal | BigInt): currency;
    compareTo(b: currency): number;
    distribute(count: number): Array<currency>;
    format(opts?: {
        symbol?: string;
        separator?: string;
        decimal?: string;
        precision?: string;
        pattern?: string;
        negativePattern?: string;
        showTail0?: true;
        formatter?: (arg0: string) => string;
    }): string;
    toString(): string;
    toNumber(): number;
    toJSON(): string;
    yuan(): string;
    cents(): string;
    chineseNumber(): string;
}
export default currency;
