/// <reference types="mongoose/types/document" />
/// <reference types="mongoose/types/models" />
/// <reference types="mongoose/types/aggregate" />
/// <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 { IBBCDateDoc } from '../models/BBCDate.model';
import { ECollaterals } from '../enums/collaterals.enum';
export declare const getBBCDateDoc: (bbcDateId: string) => Promise<mongoose.FlattenMaps<IBBCDateDoc> & Required<{
    _id: mongoose.Types.ObjectId;
}>>;
export declare const getBBCDatesByBorrower: (borrowerId: string, sortOrder?: 1 | -1) => Promise<IBBCDateDoc[]>;
export declare const getLatestBBCDates: (borrowerId: string, date?: Date, repo?: mongoose.Model<IBBCDateDoc, {}, {}, {}, mongoose.Document<unknown, {}, IBBCDateDoc> & IBBCDateDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>, any>) => Promise<IBBCDateDoc[]>;
export declare const getLatestSignedBBCDateDoc: (borrowerId: string, date?: Date) => Promise<IBBCDateDoc | null>;
export declare const getOlderBBCDates: (borrowerId: string, bbcDate: Date) => Promise<IBBCDateDoc[]>;
export declare const getBBCDates: (borrowerId: string, bbcDate: Date) => Promise<IBBCDateDoc[]>;
export declare const getBBCDatesForPeriod: (borrowerId: string, bbcDateStart: Date, bbcDateEnd: Date) => Promise<IBBCDateDoc[]>;
export declare const getBBCDatesByType: (borrowerId: string, collateralType: ECollaterals[]) => mongoose.Aggregate<IBBCDateDoc[]>;
export declare const createBBCDate: (borrowerId: string, bbcDate: Date) => Promise<mongoose.Document<unknown, {}, IBBCDateDoc> & IBBCDateDoc & Required<{
    _id: mongoose.Types.ObjectId;
}>>;
