/// <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, { Document, Model } from 'mongoose';
interface ISchemaItem {
    column: string;
    databaseTitle: string;
}
interface IMapSchema {
    data: ISchemaItem[];
    name: string;
    type: string;
}
export interface IBorrower {
    code: string;
    name: string;
    title: string;
    active: boolean;
    accrualStatus: boolean;
    organizationId: mongoose.Types.ObjectId;
    schemas: IMapSchema[];
}
export interface IBorrowerDoc extends IBorrower, Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IBorrowerLean extends IBorrower {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IBorrowerPlain extends Omit<IBorrower, 'organizationId'> {
    _id: string;
    createdAt: Date;
    updatedAt: Date;
}
export type BorrowerModel = Model<IBorrowerDoc>;
export declare const BorrowerSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
    timestamps: true;
}, {
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    name: string;
    active: boolean;
    code: string;
    title: string;
    accrualStatus: boolean;
    __v?: number;
    organizationId?: mongoose.Types.ObjectId;
    schemas?: mongoose.Types.DocumentArray<{
        type: string;
        name: string;
        data: mongoose.Types.DocumentArray<{
            column: string;
            databaseTitle: string;
        }>;
    }>;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    name: string;
    active: boolean;
    code: string;
    title: string;
    accrualStatus: boolean;
    __v?: number;
    organizationId?: mongoose.Types.ObjectId;
    schemas?: mongoose.Types.DocumentArray<{
        type: string;
        name: string;
        data: mongoose.Types.DocumentArray<{
            column: string;
            databaseTitle: string;
        }>;
    }>;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    name: string;
    active: boolean;
    code: string;
    title: string;
    accrualStatus: boolean;
    __v?: number;
    organizationId?: mongoose.Types.ObjectId;
    schemas?: mongoose.Types.DocumentArray<{
        type: string;
        name: string;
        data: mongoose.Types.DocumentArray<{
            column: string;
            databaseTitle: string;
        }>;
    }>;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const BorrowerModel: mongoose.Model<IBorrowerDoc>;
export {};
