/// <reference types="mongoose/types/document" />
/// <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 } from 'mongoose';
import { IResult } from '../interfaces/result.interface';
import { IAvailabilitySignView } from '../models/AvailabilitySigns.model';
import { IBBCDateDoc } from '../models/BBCDate.model';
import { IBorrowerDoc } from '../models/Borrower.model';
import { IPaginatorOptions } from '../interfaces/collaterals.interface';
import { UsersService } from './users.service';
import { LoanTransactionsService } from './loan-transactions.service';
import { LockService } from './lock.service';
import { LoanStatementService } from './loan-statement.service';
import { IUser } from '../interfaces/auth-user.interface';
export interface IBBCDateWithBorrower extends Document {
    borrowerId: IBorrowerDoc;
    bbcDate: Date;
}
export declare enum ESignStatus {
    STARTED = "STARTED",
    APPROVED = "APPROVED",
    PENDING = "PENDING"
}
export declare class SignsService {
    private readonly lockService;
    private readonly loanTransactionsService;
    private readonly loanStatementService;
    private readonly usersService;
    constructor(lockService: LockService, loanTransactionsService: LoanTransactionsService, loanStatementService: LoanStatementService, usersService: UsersService);
    getAvailabilitiesSigns(bbcDateIds: string[]): Promise<IAvailabilitySignView[]>;
    getAvailabilitySigns(bbcDateIds: string[]): Promise<IAvailabilitySignView[]>;
    revokeAvailability(bbcDateId: string, userId: string, userIdRevoked: string): Promise<void>;
    signAvailability(bbcDateId: string, user: IUser): Promise<IResult>;
    isBBCLocked(bbcDateId: string): Promise<boolean>;
    getLatestSignedBBCDate(borrowerId: string, date?: Date): Promise<IBBCDateDoc>;
    getSavedData(bbcDateId: string): Promise<any>;
    keepBalance(bbcDateId: string): Promise<void>;
    clearAvailabilityStoredData(bbcDateId: string): Promise<void>;
    logSignStatus(bbcDateId: string, userId: string, isSigned: boolean): Promise<void>;
    BBCDatesShort(borrowerId: string, paginatorOptions: IPaginatorOptions): Promise<{
        _id: mongoose.Types.ObjectId;
        bbcDate: Date;
        signStatus: string;
    }[]>;
}
