/// <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, { Model } from 'mongoose';
import { IBorrowerItemLean, IEmailRecipient } from './ComplianceItem.model';
import { IBorrowerDoc } from './Borrower.model';
export interface IComplianceNote {
    note: string;
    date: Date;
    user?: string;
}
export interface IComplianceBorrower {
    isVisible: boolean;
    borrower: mongoose.Types.ObjectId;
    complianceNotes?: IComplianceNote[];
    borrowerNotes?: IComplianceNote[];
    email?: string;
    mainEmails?: IEmailRecipient[];
    financialEmails?: IEmailRecipient[];
    isEmailingActive?: boolean;
    isDailyTransactionsEmailingActive?: boolean;
    plaidAccessToken?: string;
    fundingStatus?: string;
    lastEmailSentAt?: Date;
    items?: IBorrowerItemLean[];
}
export interface IComplianceBorrowerDoc extends IComplianceBorrower, mongoose.Document {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IComplianceBorrowerLean extends IComplianceBorrower {
    _id: mongoose.Types.ObjectId;
    createdAt: Date;
    updatedAt: Date;
}
export interface IComplianceBorrowerWithPlaidToken extends IComplianceBorrowerLean {
    plaidAccessToken: string;
}
export interface IComplianceBorrowerPlain extends Omit<IComplianceBorrower, 'borrower'> {
    _id: string;
    borrower: string;
    createdAt: Date;
    updatedAt: Date;
}
export interface IComplianceBorrowerWithBorrower extends Omit<IComplianceBorrowerLean, 'borrower'> {
    borrower: IBorrowerDoc;
    createdAt: Date;
    updatedAt: Date;
}
export type ComplianceBorrowerModel = Model<IComplianceBorrowerDoc>;
export interface IComplianceBorrowerDocumentFull extends Omit<IComplianceBorrowerWithBorrower, 'items'> {
    items: IBorrowerItemLean[];
}
export declare const BorrowerComplianceSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
    timestamps: true;
}, {
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    items: mongoose.Types.DocumentArray<{
        createdAt: NativeDate;
        updatedAt: NativeDate;
    } & {
        emailAddresses: mongoose.Types.DocumentArray<{
            email?: string;
            title?: string;
            isActive?: boolean;
        }>;
        instances: mongoose.Types.DocumentArray<{
            createdAt: NativeDate;
            updatedAt: NativeDate;
        } & {
            files: mongoose.Types.DocumentArray<{
                name: string;
                fileId: string;
                isFileNew?: boolean;
                uploadedAt?: Date;
                uploadedBy?: string;
            }>;
            status?: string;
            nextDate?: Date;
            submittedDate?: Date;
        }>;
        frequency?: string;
        startDate?: Date;
        item?: mongoose.Types.ObjectId;
    }>;
    borrower: mongoose.Types.ObjectId;
    complianceNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    borrowerNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    mainEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    financialEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    __v?: number;
    email?: string;
    isVisible?: boolean;
    isEmailingActive?: boolean;
    isDailyTransactionsEmailingActive?: boolean;
    plaidAccessToken?: string;
    fundingStatus?: string;
    lastEmailSentAt?: Date;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    items: mongoose.Types.DocumentArray<{
        createdAt: NativeDate;
        updatedAt: NativeDate;
    } & {
        emailAddresses: mongoose.Types.DocumentArray<{
            email?: string;
            title?: string;
            isActive?: boolean;
        }>;
        instances: mongoose.Types.DocumentArray<{
            createdAt: NativeDate;
            updatedAt: NativeDate;
        } & {
            files: mongoose.Types.DocumentArray<{
                name: string;
                fileId: string;
                isFileNew?: boolean;
                uploadedAt?: Date;
                uploadedBy?: string;
            }>;
            status?: string;
            nextDate?: Date;
            submittedDate?: Date;
        }>;
        frequency?: string;
        startDate?: Date;
        item?: mongoose.Types.ObjectId;
    }>;
    borrower: mongoose.Types.ObjectId;
    complianceNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    borrowerNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    mainEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    financialEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    __v?: number;
    email?: string;
    isVisible?: boolean;
    isEmailingActive?: boolean;
    isDailyTransactionsEmailingActive?: boolean;
    plaidAccessToken?: string;
    fundingStatus?: string;
    lastEmailSentAt?: Date;
}>> & mongoose.FlatRecord<{
    createdAt: NativeDate;
    updatedAt: NativeDate;
} & {
    items: mongoose.Types.DocumentArray<{
        createdAt: NativeDate;
        updatedAt: NativeDate;
    } & {
        emailAddresses: mongoose.Types.DocumentArray<{
            email?: string;
            title?: string;
            isActive?: boolean;
        }>;
        instances: mongoose.Types.DocumentArray<{
            createdAt: NativeDate;
            updatedAt: NativeDate;
        } & {
            files: mongoose.Types.DocumentArray<{
                name: string;
                fileId: string;
                isFileNew?: boolean;
                uploadedAt?: Date;
                uploadedBy?: string;
            }>;
            status?: string;
            nextDate?: Date;
            submittedDate?: Date;
        }>;
        frequency?: string;
        startDate?: Date;
        item?: mongoose.Types.ObjectId;
    }>;
    borrower: mongoose.Types.ObjectId;
    complianceNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    borrowerNotes: mongoose.Types.DocumentArray<{
        date: Date;
        note: string;
        user?: string;
    }>;
    mainEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    financialEmails: mongoose.Types.DocumentArray<{
        email?: string;
        title?: string;
        isActive?: boolean;
    }>;
    __v?: number;
    email?: string;
    isVisible?: boolean;
    isEmailingActive?: boolean;
    isDailyTransactionsEmailingActive?: boolean;
    plaidAccessToken?: string;
    fundingStatus?: string;
    lastEmailSentAt?: Date;
}> & {
    _id: mongoose.Types.ObjectId;
}>;
export declare const BorrowerCompliance: mongoose.Model<IComplianceBorrowerDoc, {}, {}, {}, mongoose.Document<unknown, {}, IComplianceBorrowerDoc> & IComplianceBorrowerDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>, any>;
