import { Model } from 'mongoose';
import { FeeStructure, FeeStructureDocument } from './schemas/fee-structure.schema';
import { FeeAssignmentDocument } from './schemas/fee-assignment.schema';
import { FeePaymentDocument } from './schemas/fee-payment.schema';
import { StudentDocument } from '../students/schemas/student.schema';
import { AcademicYearDocument } from '../academic-year/academic-year.schema';
import { InvoicesService } from '../invoices/invoices.service';
import { CreateFeeStructureDto } from './dto/create-fee-structure.dto';
import { UpdateFeeStructureDto } from './dto/update-fee-structure.dto';
import { RecordPaymentDto } from './dto/record-payment.dto';
import { FilterAssignmentsDto } from './dto/filter-assignments.dto';
import { ApplyDiscountDto } from './dto/apply-discount.dto';
import { UpdateDiscountDto } from './dto/update-discount.dto';
export declare class FeesService {
    private structureModel;
    private assignmentModel;
    private studentModel;
    private academicYearModel;
    private feePaymentModel;
    private readonly invoicesService;
    private readonly logger;
    private razor;
    private razorpayKeyId;
    private razorpayKeySecret;
    private razorpayWebhookSecret;
    constructor(structureModel: Model<FeeStructureDocument>, assignmentModel: Model<FeeAssignmentDocument>, studentModel: Model<StudentDocument>, academicYearModel: Model<AcademicYearDocument>, feePaymentModel: Model<FeePaymentDocument>, invoicesService: InvoicesService);
    private getRazorpay;
    createStructure(dto: CreateFeeStructureDto): Promise<{
        assignmentStats: {
            docsCreated: number;
            studentCount: number;
        };
        name: string;
        feeType: "one-time" | "monthly" | "quarterly" | "yearly";
        academicYearId: string;
        amount: number;
        classIds: string[];
        dueMonth: number;
        dueDay: number;
        startDate?: Date;
        endDate?: Date;
        enableSubFees: boolean;
        subFees: import("./schemas/fee-structure.schema").SubFee[];
        lateFine: {
            enabled: boolean;
            type: "percentage" | "per_day" | "day_wise_slab";
            amountPerDay: number;
            percentage: number;
            slabs: {
                startDay: number;
                endDay: number;
                amount: number;
            }[];
        };
        isActive: boolean;
        _id: string;
        __v: number;
        createdAt?: Date;
        updatedAt?: Date;
        $locals: Record<string, unknown>;
        $op: "save" | "validate" | "remove" | null;
        $where: Record<string, unknown>;
        baseModelName?: string;
        collection: import("mongoose").Collection;
        db: import("mongoose").Connection;
        errors?: import("mongoose").Error.ValidationError;
        id?: any;
        isNew: boolean;
        schema: import("mongoose").Schema;
    }>;
    getStructures(academicYearId?: string, classId?: string, activeOnly?: boolean): Promise<(import("mongoose").FlattenMaps<FeeStructureDocument> & Required<{
        _id: string;
    }>)[]>;
    getStructure(id: string): Promise<import("mongoose").FlattenMaps<FeeStructureDocument> & Required<{
        _id: string;
    }>>;
    updateStructure(id: string, dto: UpdateFeeStructureDto): Promise<import("mongoose").FlattenMaps<FeeStructureDocument> & Required<{
        _id: string;
    }>>;
    deleteStructure(id: string): Promise<{
        deleted: boolean;
    }>;
    duplicateStructure(sourceId: string, targetAcademicYearId: string): Promise<{
        structure: FeeStructure & import("mongoose").Document<unknown, any, any, Record<string, any>> & Required<{
            _id: string;
        }>;
        assignmentsGenerated: number;
        studentCount: number;
    }>;
    private getActiveDiscountAmount;
    private calculateDiscountAmount;
    private enrichAssignments;
    applyDiscount(assignmentId: string, dto: ApplyDiscountDto, adminId: string): Promise<any>;
    updateDiscount(assignmentId: string, dto: UpdateDiscountDto, adminId: string): Promise<any>;
    removeDiscount(assignmentId: string): Promise<any>;
    getAssignments(filter: FilterAssignmentsDto): Promise<any[]>;
    getStudentDashboard(studentId: string, academicYearId?: string): Promise<{
        student: import("mongoose").FlattenMaps<StudentDocument> & Required<{
            _id: string;
        }>;
        summary: {
            totalFee: any;
            totalDiscount: any;
            paidAmount: any;
            dueAmount: number;
            nextDueDate: string | null;
        };
        assignments: any[];
    }>;
    createRazorpayOrder(assignmentId: string, studentId: string, requestedAmount?: number): Promise<{
        orderId: string;
        amount: string | number;
        currency: string;
        keyId: string;
        assignmentId: string;
    }>;
    verifyRazorpayPayment(assignmentId: string, studentId: string, body: {
        razorpay_order_id: string;
        razorpay_payment_id: string;
        razorpay_signature: string;
    }): Promise<{
        status: string;
        receiptNumber: string | undefined;
    } | {
        status: "partial" | "pending" | "paid";
        receiptNumber: any;
    }>;
    private recordPaymentCore;
    recordOfflinePayment(assignmentId: string, dto: RecordPaymentDto, adminId: string, receipt?: Express.Multer.File): Promise<{
        receiptNumber: any;
        payment: any;
        invoiceWarning: string | null;
        studentId: string;
        feeStructureId: string;
        academicYearId: string;
        classId: string;
        feeName: string;
        installment: string;
        amount: number;
        baseAmount: number;
        subFees: import("mongoose").FlattenMaps<import("./schemas/fee-structure.schema").SubFee>[];
        fineAmount: number;
        paidAmount: number;
        dueDate: Date;
        status: "pending" | "partial" | "paid";
        discountType?: "amount" | "percentage" | undefined;
        discountValue?: number | undefined;
        discountAmount: number;
        discountReason?: string | undefined;
        discountValidUntil?: Date | undefined;
        discountAppliedBy?: string | undefined;
        paidAt?: Date | undefined;
        paymentMethod?: string | undefined;
        razorpayOrderId?: string | undefined;
        razorpayPaymentId?: string | undefined;
        razorpaySignature?: string | undefined;
        razorpayOrderAmount?: number | undefined;
        collectedBy?: string | undefined;
        notes?: string | undefined;
        transactionId?: string | undefined;
        _id: string;
        __v: number;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        $assertPopulated: <Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<FeeAssignmentDocument, keyof Paths> & Paths;
        $clearModifiedPaths: () => FeeAssignmentDocument;
        $clone: () => FeeAssignmentDocument;
        $createModifiedPathsSnapshot: () => import("mongoose").ModifiedPathsSnapshot;
        $getAllSubdocs: () => import("mongoose").Document[];
        $ignore: (path: string) => void;
        $isDefault: (path: string) => boolean;
        $isDeleted: (val?: boolean) => boolean;
        $getPopulatedDocs: () => import("mongoose").Document[];
        $inc: (path: string | string[], val?: number) => FeeAssignmentDocument;
        $isEmpty: (path: string) => boolean;
        $isValid: (path: string) => boolean;
        $locals: import("mongoose").FlattenMaps<Record<string, unknown>>;
        $markValid: (path: string) => void;
        $model: {
            <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        $op: "save" | "validate" | "remove" | null;
        $restoreModifiedPathsSnapshot: (snapshot: import("mongoose").ModifiedPathsSnapshot) => FeeAssignmentDocument;
        $session: (session?: import("mongoose").ClientSession | null) => import("mongoose").ClientSession | null;
        $set: {
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeeAssignmentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): FeeAssignmentDocument;
            (value: string | Record<string, any>): FeeAssignmentDocument;
        };
        $where: import("mongoose").FlattenMaps<Record<string, unknown>>;
        baseModelName?: string | undefined;
        collection: import("mongoose").Collection;
        db: import("mongoose").FlattenMaps<import("mongoose").Connection>;
        deleteOne: (options?: import("mongoose").QueryOptions) => any;
        depopulate: <Paths = {}>(path?: string | string[]) => import("mongoose").MergeType<FeeAssignmentDocument, Paths>;
        directModifiedPaths: () => Array<string>;
        equals: (doc: import("mongoose").Document<unknown, any, any, Record<string, any>>) => boolean;
        errors?: import("mongoose").Error.ValidationError | undefined;
        get: {
            <T extends string | number | symbol>(path: T, type?: any, options?: any): any;
            (path: string, type?: any, options?: any): any;
        };
        getChanges: () => import("mongoose").UpdateQuery<FeeAssignmentDocument>;
        id?: any;
        increment: () => FeeAssignmentDocument;
        init: (obj: import("mongoose").AnyObject, opts?: import("mongoose").AnyObject) => FeeAssignmentDocument;
        invalidate: {
            <T extends string | number | symbol>(path: T, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
            (path: string, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
        };
        isDirectModified: {
            <T extends string | number | symbol>(path: T | T[]): boolean;
            (path: string | Array<string>): boolean;
        };
        isDirectSelected: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        isInit: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        isModified: {
            <T extends string | number | symbol>(path?: T | T[] | undefined, options?: {
                ignoreAtomics?: boolean;
            } | null): boolean;
            (path?: string | Array<string>, options?: {
                ignoreAtomics?: boolean;
            } | null): boolean;
        };
        isNew: boolean;
        isSelected: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        markModified: {
            <T extends string | number | symbol>(path: T, scope?: any): void;
            (path: string, scope?: any): void;
        };
        model: {
            <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        modifiedPaths: (options?: {
            includeChildren?: boolean;
        }) => Array<string>;
        overwrite: (obj: import("mongoose").AnyObject) => FeeAssignmentDocument;
        $parent: () => import("mongoose").Document | undefined;
        populate: {
            <Paths = {}>(path: string | import("mongoose").PopulateOptions | (string | import("mongoose").PopulateOptions)[]): Promise<import("mongoose").MergeType<FeeAssignmentDocument, Paths>>;
            <Paths = {}>(path: string, select?: string | import("mongoose").AnyObject, model?: Model<any>, match?: import("mongoose").AnyObject, options?: import("mongoose").PopulateOptions): Promise<import("mongoose").MergeType<FeeAssignmentDocument, Paths>>;
        };
        populated: (path: string) => any;
        replaceOne: (replacement?: import("mongoose").AnyObject, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, FeeAssignmentDocument, {}, unknown, "find", Record<string, never>>;
        save: (options?: import("mongoose").SaveOptions) => Promise<FeeAssignmentDocument>;
        schema: import("mongoose").FlattenMaps<import("mongoose").Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
            [x: string]: unknown;
        }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
            [x: string]: unknown;
        }>, {}> & import("mongoose").FlatRecord<{
            [x: string]: unknown;
        }> & Required<{
            _id: unknown;
        }> & {
            __v: number;
        }>>;
        set: {
            <T extends string | number | symbol>(path: T, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeeAssignmentDocument;
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeeAssignmentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): FeeAssignmentDocument;
            (value: string | Record<string, any>): FeeAssignmentDocument;
        };
        toJSON: {
            (options: import("mongoose").ToObjectOptions & {
                virtuals: true;
            }): any;
            (options?: import("mongoose").ToObjectOptions & {
                flattenMaps?: true;
                flattenObjectIds?: false;
            }): import("mongoose").FlattenMaps<any>;
            (options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: false;
            }): import("mongoose").FlattenMaps<any>;
            (options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: true;
            }): {
                [x: string]: any;
            };
            (options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
            }): any;
            (options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
                flattenObjectIds: true;
            }): any;
            <T = any>(options?: import("mongoose").ToObjectOptions & {
                flattenMaps?: true;
                flattenObjectIds?: false;
            }): import("mongoose").FlattenMaps<T>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: false;
            }): import("mongoose").FlattenMaps<T>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: true;
            }): import("mongoose").ObjectIdToString<import("mongoose").FlattenMaps<T>>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
            }): T;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
                flattenObjectIds: true;
            }): import("mongoose").ObjectIdToString<T>;
        };
        toObject: {
            (options: import("mongoose").ToObjectOptions & {
                virtuals: true;
            }): any;
            (options?: import("mongoose").ToObjectOptions): any;
            <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
        };
        unmarkModified: {
            <T extends string | number | symbol>(path: T): void;
            (path: string): void;
        };
        updateOne: (update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<FeeAssignmentDocument> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, FeeAssignmentDocument, {}, unknown, "find", Record<string, never>>;
        validate: {
            <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): Promise<void>;
            (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): Promise<void>;
            (options: {
                pathsToSkip?: import("mongoose").pathsToSkip;
            }): Promise<void>;
        };
        validateSync: {
            (options: {
                pathsToSkip?: import("mongoose").pathsToSkip;
                [k: string]: any;
            }): import("mongoose").Error.ValidationError | null;
            <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
            (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
        };
    }>;
    handleWebhook(signature: string | undefined, rawBody: Buffer, jsonBody: any): Promise<{
        received: boolean;
    }>;
    syncAssignments(structureId?: string, academicYearId?: string): Promise<{
        synced: number;
        studentCount: number;
    }>;
    regenerateUnpaidAssignments(structureId: string): Promise<{
        generated: number;
        updated: number;
        studentCount: number;
        deletedOld: number;
    }>;
    private syncStudentAssignments;
    private generateAssignments;
    private buildAssignmentDocs;
    private resolveEffectiveRange;
    private computeFine;
    private calculateFineForAssignment;
    recalculateFines(assignments: any[]): Promise<any[]>;
    verifyReceipt(receiptNumber: string): Promise<{
        receiptNumber: string | undefined;
        studentName: string;
        studentId: string;
        rollNumber: string;
        feeName: string;
        installment: string;
        amount: number;
        fineComponent: number;
        totalPaid: number;
        status: string;
        paidAt: Date;
        paymentMethod: string;
        fineAmount?: undefined;
        discountAmount?: undefined;
    } | {
        receiptNumber: string | undefined;
        studentName: string;
        studentId: string;
        rollNumber: string;
        feeName: string;
        installment: string;
        amount: number;
        fineAmount: number;
        discountAmount: number;
        totalPaid: number;
        status: "partial" | "pending" | "paid";
        paidAt: Date | undefined;
        paymentMethod: string | undefined;
        fineComponent?: undefined;
    } | null>;
    getPaymentHistory(assignmentId: string, studentId?: string): Promise<{
        collectedByName: string | undefined;
        receiptUrl: string | undefined;
        assignmentId: string;
        studentId: string;
        academicYearId: string;
        amount: number;
        fineComponent: number;
        paymentMethod: string;
        receiptNumber?: string | undefined;
        razorpayOrderId?: string | undefined;
        razorpayPaymentId?: string | undefined;
        razorpaySignature?: string | undefined;
        transactionId?: string | undefined;
        collectedBy?: string | undefined;
        notes?: string | undefined;
        paidAt: Date;
        _id: string;
        __v: number;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        $assertPopulated: <Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<FeePaymentDocument, keyof Paths> & Paths;
        $clearModifiedPaths: () => FeePaymentDocument;
        $clone: () => FeePaymentDocument;
        $createModifiedPathsSnapshot: () => import("mongoose").ModifiedPathsSnapshot;
        $getAllSubdocs: () => import("mongoose").Document[];
        $ignore: (path: string) => void;
        $isDefault: (path: string) => boolean;
        $isDeleted: (val?: boolean) => boolean;
        $getPopulatedDocs: () => import("mongoose").Document[];
        $inc: (path: string | string[], val?: number) => FeePaymentDocument;
        $isEmpty: (path: string) => boolean;
        $isValid: (path: string) => boolean;
        $locals: import("mongoose").FlattenMaps<Record<string, unknown>>;
        $markValid: (path: string) => void;
        $model: {
            <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        $op: "save" | "validate" | "remove" | null;
        $restoreModifiedPathsSnapshot: (snapshot: import("mongoose").ModifiedPathsSnapshot) => FeePaymentDocument;
        $session: (session?: import("mongoose").ClientSession | null) => import("mongoose").ClientSession | null;
        $set: {
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeePaymentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): FeePaymentDocument;
            (value: string | Record<string, any>): FeePaymentDocument;
        };
        $where: import("mongoose").FlattenMaps<Record<string, unknown>>;
        baseModelName?: string | undefined;
        collection: import("mongoose").Collection;
        db: import("mongoose").FlattenMaps<import("mongoose").Connection>;
        deleteOne: (options?: import("mongoose").QueryOptions) => any;
        depopulate: <Paths = {}>(path?: string | string[]) => import("mongoose").MergeType<FeePaymentDocument, Paths>;
        directModifiedPaths: () => Array<string>;
        equals: (doc: import("mongoose").Document<unknown, any, any, Record<string, any>>) => boolean;
        errors?: import("mongoose").Error.ValidationError | undefined;
        get: {
            <T extends string | number | symbol>(path: T, type?: any, options?: any): any;
            (path: string, type?: any, options?: any): any;
        };
        getChanges: () => import("mongoose").UpdateQuery<FeePaymentDocument>;
        id?: any;
        increment: () => FeePaymentDocument;
        init: (obj: import("mongoose").AnyObject, opts?: import("mongoose").AnyObject) => FeePaymentDocument;
        invalidate: {
            <T extends string | number | symbol>(path: T, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
            (path: string, errorMsg: string | NativeError, value?: any, kind?: string): NativeError | null;
        };
        isDirectModified: {
            <T extends string | number | symbol>(path: T | T[]): boolean;
            (path: string | Array<string>): boolean;
        };
        isDirectSelected: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        isInit: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        isModified: {
            <T extends string | number | symbol>(path?: T | T[] | undefined, options?: {
                ignoreAtomics?: boolean;
            } | null): boolean;
            (path?: string | Array<string>, options?: {
                ignoreAtomics?: boolean;
            } | null): boolean;
        };
        isNew: boolean;
        isSelected: {
            <T extends string | number | symbol>(path: T): boolean;
            (path: string): boolean;
        };
        markModified: {
            <T extends string | number | symbol>(path: T, scope?: any): void;
            (path: string, scope?: any): void;
        };
        model: {
            <ModelType = Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        modifiedPaths: (options?: {
            includeChildren?: boolean;
        }) => Array<string>;
        overwrite: (obj: import("mongoose").AnyObject) => FeePaymentDocument;
        $parent: () => import("mongoose").Document | undefined;
        populate: {
            <Paths = {}>(path: string | import("mongoose").PopulateOptions | (string | import("mongoose").PopulateOptions)[]): Promise<import("mongoose").MergeType<FeePaymentDocument, Paths>>;
            <Paths = {}>(path: string, select?: string | import("mongoose").AnyObject, model?: Model<any>, match?: import("mongoose").AnyObject, options?: import("mongoose").PopulateOptions): Promise<import("mongoose").MergeType<FeePaymentDocument, Paths>>;
        };
        populated: (path: string) => any;
        replaceOne: (replacement?: import("mongoose").AnyObject, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, FeePaymentDocument, {}, unknown, "find", Record<string, never>>;
        save: (options?: import("mongoose").SaveOptions) => Promise<FeePaymentDocument>;
        schema: import("mongoose").FlattenMaps<import("mongoose").Schema<any, Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
            [x: string]: unknown;
        }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
            [x: string]: unknown;
        }>, {}> & import("mongoose").FlatRecord<{
            [x: string]: unknown;
        }> & Required<{
            _id: unknown;
        }> & {
            __v: number;
        }>>;
        set: {
            <T extends string | number | symbol>(path: T, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeePaymentDocument;
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): FeePaymentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): FeePaymentDocument;
            (value: string | Record<string, any>): FeePaymentDocument;
        };
        toJSON: {
            (options: import("mongoose").ToObjectOptions & {
                virtuals: true;
            }): any;
            (options?: import("mongoose").ToObjectOptions & {
                flattenMaps?: true;
                flattenObjectIds?: false;
            }): import("mongoose").FlattenMaps<any>;
            (options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: false;
            }): import("mongoose").FlattenMaps<any>;
            (options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: true;
            }): {
                [x: string]: any;
            };
            (options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
            }): any;
            (options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
                flattenObjectIds: true;
            }): any;
            <T = any>(options?: import("mongoose").ToObjectOptions & {
                flattenMaps?: true;
                flattenObjectIds?: false;
            }): import("mongoose").FlattenMaps<T>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: false;
            }): import("mongoose").FlattenMaps<T>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenObjectIds: true;
            }): import("mongoose").ObjectIdToString<import("mongoose").FlattenMaps<T>>;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
            }): T;
            <T = any>(options: import("mongoose").ToObjectOptions & {
                flattenMaps: false;
                flattenObjectIds: true;
            }): import("mongoose").ObjectIdToString<T>;
        };
        toObject: {
            (options: import("mongoose").ToObjectOptions & {
                virtuals: true;
            }): any;
            (options?: import("mongoose").ToObjectOptions): any;
            <T>(options?: import("mongoose").ToObjectOptions): import("mongoose").Default__v<import("mongoose").Require_id<T>>;
        };
        unmarkModified: {
            <T extends string | number | symbol>(path: T): void;
            (path: string): void;
        };
        updateOne: (update?: import("mongoose").UpdateWithAggregationPipeline | import("mongoose").UpdateQuery<FeePaymentDocument> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, FeePaymentDocument, {}, unknown, "find", Record<string, never>>;
        validate: {
            <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): Promise<void>;
            (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): Promise<void>;
            (options: {
                pathsToSkip?: import("mongoose").pathsToSkip;
            }): Promise<void>;
        };
        validateSync: {
            (options: {
                pathsToSkip?: import("mongoose").pathsToSkip;
                [k: string]: any;
            }): import("mongoose").Error.ValidationError | null;
            <T extends string | number | symbol>(pathsToValidate?: T | T[] | undefined, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
            (pathsToValidate?: import("mongoose").pathsToValidate, options?: import("mongoose").AnyObject): import("mongoose").Error.ValidationError | null;
        };
    }[]>;
    private generateReceiptNumber;
}
