import { Model, Types } from 'mongoose';
import { PaymentProduct, PaymentProductDocument } from './schemas/payment-product.schema';
import { PaymentDocument } from './schemas/payment.schema';
import { CreatePaymentProductDto } from './dto/create-payment-product.dto';
import { UpdatePaymentProductDto } from './dto/update-payment-product.dto';
import { CreateOrderDto } from './dto/create-order.dto';
import { VerifyPaymentDto } from './dto/verify-payment.dto';
import { FilterPaymentsDto } from './dto/filter-payments.dto';
import { StudentDocument } from '../students/schemas/student.schema';
import { SettingsService } from '../settings/settings.service';
export declare class PaymentsService {
    private productModel;
    private paymentModel;
    private studentModel;
    private readonly settingsService;
    private readonly logger;
    private razor?;
    private razorpayKeyId;
    private razorpayKeySecret;
    constructor(productModel: Model<PaymentProductDocument>, paymentModel: Model<PaymentDocument>, studentModel: Model<StudentDocument>, settingsService: SettingsService);
    private refreshRazorpayCreds;
    private getRazorpay;
    createProduct(dto: CreatePaymentProductDto): Promise<PaymentProduct & import("mongoose").Document<unknown, any, any, Record<string, any>> & Required<{
        _id: string;
    }>>;
    updateProduct(id: string, dto: UpdatePaymentProductDto): Promise<import("mongoose").FlattenMaps<PaymentProductDocument> & Required<{
        _id: string;
    }>>;
    deleteProduct(id: string): Promise<{
        deleted: boolean;
    }>;
    getAllProducts(): import("mongoose").Query<(import("mongoose").FlattenMaps<PaymentProductDocument> & Required<{
        _id: string;
    }>)[], import("mongoose").Document<unknown, {}, PaymentProductDocument, {}> & PaymentProduct & import("mongoose").Document<unknown, any, any, Record<string, any>> & Required<{
        _id: string;
    }>, {}, PaymentProductDocument, "find", {}>;
    getProduct(id: string): import("mongoose").Query<(import("mongoose").FlattenMaps<PaymentProductDocument> & Required<{
        _id: string;
    }>) | null, import("mongoose").Document<unknown, {}, PaymentProductDocument, {}> & PaymentProduct & import("mongoose").Document<unknown, any, any, Record<string, any>> & Required<{
        _id: string;
    }>, {}, PaymentProductDocument, "findOne", {}>;
    getAvailableProductsForStudent(studentId: string): Promise<{
        myPayment: PaymentDocument | null;
        name: string;
        description?: string | undefined;
        type?: "tuition" | "exam" | "transport" | "other" | undefined;
        currency: "INR";
        amount: number;
        academicYearId: string;
        classId: string;
        isActive: boolean;
        _id: string;
        __v: number;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        $assertPopulated: <Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<PaymentProductDocument, keyof Paths> & Paths;
        $clearModifiedPaths: () => PaymentProductDocument;
        $clone: () => PaymentProductDocument;
        $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) => PaymentProductDocument;
        $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: Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        $op: "save" | "validate" | "remove" | null;
        $restoreModifiedPathsSnapshot: (snapshot: import("mongoose").ModifiedPathsSnapshot) => PaymentProductDocument;
        $session: (session?: import("mongoose").ClientSession | null) => import("mongoose").ClientSession | null;
        $set: {
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): PaymentProductDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): PaymentProductDocument;
            (value: string | Record<string, any>): PaymentProductDocument;
        };
        $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<PaymentProductDocument, 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<PaymentProductDocument>;
        id?: any;
        increment: () => PaymentProductDocument;
        init: (obj: import("mongoose").AnyObject, opts?: import("mongoose").AnyObject) => PaymentProductDocument;
        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: 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) => PaymentProductDocument;
        $parent: () => import("mongoose").Document | undefined;
        populate: {
            <Paths = {}>(path: string | import("mongoose").PopulateOptions | (string | import("mongoose").PopulateOptions)[]): Promise<import("mongoose").MergeType<PaymentProductDocument, Paths>>;
            <Paths = {}>(path: string, select?: string | import("mongoose").AnyObject, model?: Model<any>, match?: import("mongoose").AnyObject, options?: import("mongoose").PopulateOptions): Promise<import("mongoose").MergeType<PaymentProductDocument, Paths>>;
        };
        populated: (path: string) => any;
        replaceOne: (replacement?: import("mongoose").AnyObject, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, PaymentProductDocument, {}, unknown, "find", Record<string, never>>;
        save: (options?: import("mongoose").SaveOptions) => Promise<PaymentProductDocument>;
        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): PaymentProductDocument;
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): PaymentProductDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): PaymentProductDocument;
            (value: string | Record<string, any>): PaymentProductDocument;
        };
        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<PaymentProductDocument> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, PaymentProductDocument, {}, 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;
        };
    }[]>;
    createOrder(studentId: string, body: CreateOrderDto): Promise<{
        orderId: string;
        amount: number;
        currency: "INR";
        keyId: string;
        paymentId: string | null;
        localPaymentId: string;
    } | {
        orderId: any;
        amount: any;
        currency: any;
        keyId: string;
        paymentId: null;
        localPaymentId: string;
    }>;
    verifyPayment(studentId: string, dto: VerifyPaymentDto): Promise<{
        status: string;
        paymentId: string | undefined;
        orderId: string | undefined;
    }>;
    getMyPayments(studentId: string): Promise<(import("mongoose").FlattenMaps<PaymentDocument> & Required<{
        _id: string;
    }>)[]>;
    listPayments(filters: FilterPaymentsDto): Promise<(import("mongoose").FlattenMaps<PaymentDocument> & Required<{
        _id: string;
    }>)[]>;
    handleWebhook(signature: string | undefined, rawBody: Buffer | string, jsonBody: any): Promise<{
        received: boolean;
    }>;
}
