/// <reference types="mongoose/types/types" />
/// <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 { IBorrowerDoc } from '../models/Borrower.model';
import { IComplianceFile } from '../models/ComplianceItem.model';
import { ComplianceBorrowersService } from './compliance-borrowers.service';
export type BorrowerWithFiles = {
    _id: mongoose.Types.ObjectId;
    borrower: IBorrowerDoc;
    files: IComplianceFile[];
};
export declare class FileManagerService {
    private readonly getComplianceBorrowersService;
    constructor(getComplianceBorrowersService: () => ComplianceBorrowersService);
    getAwsFileId(borrowerId: string, instanceId: string, fileId: string): Promise<any>;
    uploadFile(complianceBorrowerId: string, instanceId: string, originalName: string, uuid: string, user: any): Promise<void>;
    findItemByInstanceId(instanceId: any): Promise<any[]>;
    getFilesNewerThanDate(date: Date): Promise<BorrowerWithFiles[]>;
    deleteFile(complianceBorrowerId: string, fileId: string): Promise<void>;
    getFilesByBorrowerId(borrowerId: string): Promise<import("../models/ComplianceItem.model").IBorrowerItemLean[]>;
    updateAWSID(itemId: any, instanceId: any, fileId: any, awsFileId: any): Promise<void>;
}
