/// <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 { ELoanTypes } from '../enums/loan-types.enum';
import { IBorrowerLean } from './Borrower.model';
export interface ILoanProduct {
    borrowerId: mongoose.Types.ObjectId;
    facilityId?: mongoose.Types.ObjectId | null;
    order: number;
    active: boolean;
    code: string;
    masterCode?: string;
    name: string;
    type: ELoanTypes;
    startDate: Date;
    maturityDate: Date;
    payoffDate?: Date;
    commitment: number;
    isBalanceActual: boolean;
    isFloatedBalanceActual: boolean;
    isParticipant?: boolean;
    masterLoanProductId?: mongoose.Types.ObjectId | null;
    minPercent: number;
    maxPercent: number;
    prepaymentDate?: Date;
    prepaymentTerms?: string;
    settlementCode: string;
    isDefaultPaymentOrder: boolean;
    calculationRequired: boolean;
    deactivationDate?: Date | null;
}
export interface ILoanProductDoc extends ILoanProduct, mongoose.Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface ILoanProductLean extends ILoanProduct {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface ILoanProductPlain extends Omit<ILoanProduct, 'borrowerId' | 'masterLoanProductId' | 'facilityId'> {
    _id: string;
    borrowerId: string;
    masterLoanProductId?: string | null;
    facilityId?: string | null;
}
export interface ILoanProductWithId extends ILoanProduct {
    _id: mongoose.Types.ObjectId;
}
export type ILoanProductView = Omit<ILoanProductWithId, 'borrowerId' | 'order'>;
export interface ILoanProductViewWithBalances extends ILoanProductView {
    balance: number;
    floatedBalance: number;
}
export interface ILoanProductLeanWithBorrower extends Omit<ILoanProductLean, 'borrowerId'> {
    borrowerId: IBorrowerLean;
}
export type TLoanProductModel = mongoose.Model<ILoanProduct>;
export declare const LoanProductSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
    timestamps: true;
}, {
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    masterLoanProductId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    code: string;
    name: string;
    type: string;
    startDate: Date;
    maturityDate: Date;
    commitment: number;
    isBalanceActual: boolean;
    isFloatedBalanceActual: boolean;
    isDefaultPaymentOrder: boolean;
    facilityId?: mongoose.Types.ObjectId;
    masterCode?: string;
    payoffDate?: Date;
    isParticipant?: boolean;
    minPercent?: number;
    maxPercent?: number;
    prepaymentDate?: Date;
    prepaymentTerms?: string;
    settlementCode?: string;
    deactivationDate?: Date;
    __v?: number;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    masterLoanProductId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    code: string;
    name: string;
    type: string;
    startDate: Date;
    maturityDate: Date;
    commitment: number;
    isBalanceActual: boolean;
    isFloatedBalanceActual: boolean;
    isDefaultPaymentOrder: boolean;
    facilityId?: mongoose.Types.ObjectId;
    masterCode?: string;
    payoffDate?: Date;
    isParticipant?: boolean;
    minPercent?: number;
    maxPercent?: number;
    prepaymentDate?: Date;
    prepaymentTerms?: string;
    settlementCode?: string;
    deactivationDate?: Date;
    __v?: number;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    masterLoanProductId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    code: string;
    name: string;
    type: string;
    startDate: Date;
    maturityDate: Date;
    commitment: number;
    isBalanceActual: boolean;
    isFloatedBalanceActual: boolean;
    isDefaultPaymentOrder: boolean;
    facilityId?: mongoose.Types.ObjectId;
    masterCode?: string;
    payoffDate?: Date;
    isParticipant?: boolean;
    minPercent?: number;
    maxPercent?: number;
    prepaymentDate?: Date;
    prepaymentTerms?: string;
    settlementCode?: string;
    deactivationDate?: Date;
    __v?: number;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const LoanProduct: mongoose.Model<ILoanProductDoc, {}, {}, {}, mongoose.Document<unknown, {}, ILoanProductDoc> & ILoanProductDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>, any>;
