/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/utility" />
/// <reference types="mongoose/types/aggregate" />
/// <reference types="mongoose/types/callback" />
/// <reference types="mongoose/types/collection" />
/// <reference types="mongoose/types/connection" />
/// <reference types="mongoose/types/cursor" />
/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/error" />
/// <reference types="mongoose/types/expressions" />
/// <reference types="mongoose/types/helpers" />
/// <reference types="mongoose/types/middlewares" />
/// <reference types="mongoose/types/indexes" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/mongooseoptions" />
/// <reference types="mongoose/types/pipelinestage" />
/// <reference types="mongoose/types/populate" />
/// <reference types="mongoose/types/query" />
/// <reference types="mongoose/types/schemaoptions" />
/// <reference types="mongoose/types/schematypes" />
/// <reference types="mongoose/types/session" />
/// <reference types="mongoose/types/types" />
/// <reference types="mongoose/types/utility" />
/// <reference types="mongoose/types/validation" />
/// <reference types="mongoose/types/virtuals" />
/// <reference types="mongoose/types/inferschematype" />
import mongoose from 'mongoose';
import Joi from 'joi';
import { EChargeCalculationBasis, EChargeFrequencies } from '../enums/loan-types.enum';
import { ELoanChargeType } from '../enums/loan-charge-type.enum';
export declare const chargeViewValidationSchema: Joi.ObjectSchema<ILoanChargeView & {
    valid: boolean;
}>;
export interface ILoanCharge {
    borrowerId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    name: string;
    code: string;
    PLCode: string;
    productId: mongoose.Types.ObjectId;
    percent: number;
    minimumAmount: number;
    frequency: EChargeFrequencies;
    applyFrom: Date;
    calculationBasis: EChargeCalculationBasis;
    chargeType: ELoanChargeType;
    deletedAt?: Date;
    paymentOrder?: number;
    includeInYield: boolean;
}
export interface ILoanChargeWithId extends ILoanCharge {
    _id: mongoose.Types.ObjectId;
}
export type ILoanChargeView = Omit<ILoanChargeWithId, 'borrowerId' | 'order'>;
export interface ILoanChargeDoc extends ILoanCharge, mongoose.Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface ILoanChargeLean extends ILoanCharge {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface ILoanChargePlain extends Omit<ILoanCharge, 'borrowerId' | 'productId'> {
    _id: string;
    borrowerId: string;
    productId: string;
}
export type TLoanChargeModel = mongoose.Model<ILoanCharge>;
export declare const defaultChargeList: ILoanChargeView[];
export declare const LoanChargeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
    timestamps: true;
}, {
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    productId: mongoose.Types.ObjectId;
    name: string;
    order: number;
    active: boolean;
    code: string;
    PLCode: string;
    percent: number;
    minimumAmount: number;
    frequency: string;
    applyFrom: Date;
    calculationBasis: string;
    chargeType: string;
    includeInYield: boolean;
    __v?: number;
    deletedAt?: Date;
    paymentOrder?: number;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    productId: mongoose.Types.ObjectId;
    name: string;
    order: number;
    active: boolean;
    code: string;
    PLCode: string;
    percent: number;
    minimumAmount: number;
    frequency: string;
    applyFrom: Date;
    calculationBasis: string;
    chargeType: string;
    includeInYield: boolean;
    __v?: number;
    deletedAt?: Date;
    paymentOrder?: number;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    productId: mongoose.Types.ObjectId;
    name: string;
    order: number;
    active: boolean;
    code: string;
    PLCode: string;
    percent: number;
    minimumAmount: number;
    frequency: string;
    applyFrom: Date;
    calculationBasis: string;
    chargeType: string;
    includeInYield: boolean;
    __v?: number;
    deletedAt?: Date;
    paymentOrder?: number;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const LoanCharge: mongoose.Model<ILoanChargeDoc, {}, {}, {}, mongoose.Document<unknown, {}, ILoanChargeDoc> & ILoanChargeDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>, any>;
