/// <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 { ILoanBrokerWithId } from './LoanBroker.model';
export declare const ProductBrokerValidationSchema: Joi.ObjectSchema<any>;
export interface IProductBroker {
    order: number;
    borrowerId: mongoose.Types.ObjectId;
    active: boolean;
    loanBrokerId: mongoose.Types.ObjectId;
    BSCode: string;
    PLCode: string;
    productId: mongoose.Types.ObjectId;
    interestShare: number;
    adminShare: number;
    otherShare: number;
}
export interface IProductBrokerDoc extends IProductBroker, mongoose.Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IProductBrokerLean extends IProductBroker {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IProductBrokerPlain extends Omit<IProductBroker, 'borrowerId' | 'loanBrokerId' | 'productId'> {
    _id: string;
    borrowerId: string;
    loanBrokerId: string;
    productId: string;
}
export interface IProductBrokerDocWithBroker extends IProductBrokerDoc {
    loanBroker: ILoanBrokerWithId;
}
export type IProductBrokerView = Omit<IProductBrokerLean, 'borrowerId' | 'order'>;
export type TProductBrokerModel = mongoose.Model<IProductBroker>;
export declare const ProductBrokerSchema: 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;
    order: number;
    active: boolean;
    PLCode: string;
    loanBrokerId: mongoose.Types.ObjectId;
    BSCode: string;
    interestShare: number;
    adminShare: number;
    otherShare: number;
    __v?: number;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    productId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    PLCode: string;
    loanBrokerId: mongoose.Types.ObjectId;
    BSCode: string;
    interestShare: number;
    adminShare: number;
    otherShare: number;
    __v?: number;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    borrowerId: mongoose.Types.ObjectId;
    productId: mongoose.Types.ObjectId;
    order: number;
    active: boolean;
    PLCode: string;
    loanBrokerId: mongoose.Types.ObjectId;
    BSCode: string;
    interestShare: number;
    adminShare: number;
    otherShare: number;
    __v?: number;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const ProductBrokerModel: mongoose.Model<IProductBrokerDoc>;
