import { RawBodyRequest } from '@nestjs/common';
import { Request } from 'express';
import { TransportService } from './transport.service';
import { CreateRouteDto } from './dto/create-route.dto';
import { UpdateRouteDto } from './dto/update-route.dto';
import { AssignTransportDto } from './dto/assign-transport.dto';
import { RecordTransportPaymentDto } from './dto/record-transport-payment.dto';
import { FilterTransportAssignmentsDto } from './dto/filter-transport-assignments.dto';
import { VerifyTransportPaymentDto } from './dto/verify-transport-payment.dto';
import { ToggleTransportDto } from './dto/toggle-transport.dto';
import { RequestContext } from 'src/common/context/request-context';
export declare class TransportController {
    private readonly transportService;
    constructor(transportService: TransportService);
    createRoute(dto: CreateRouteDto, ctx: RequestContext): Promise<import("./schemas/transport-route.schema").TransportRoute & import("mongoose").Document<unknown, any, any, Record<string, any>> & Required<{
        _id: string;
    }>>;
    getRoutes(academicYearId?: string, activeOnly?: string): Promise<(import("mongoose").FlattenMaps<import("./schemas/transport-route.schema").TransportRouteDocument> & Required<{
        _id: string;
    }>)[]>;
    getRoute(id: string): Promise<import("mongoose").FlattenMaps<import("./schemas/transport-route.schema").TransportRouteDocument> & Required<{
        _id: string;
    }>>;
    updateRoute(id: string, dto: UpdateRouteDto, ctx: RequestContext): Promise<(import("mongoose").FlattenMaps<import("./schemas/transport-route.schema").TransportRouteDocument> & Required<{
        _id: string;
    }>) | null>;
    deleteRoute(id: string, ctx: RequestContext): Promise<{
        deleted: boolean;
    }>;
    assignStudents(dto: AssignTransportDto, ctx: RequestContext): Promise<{
        created: number;
    }>;
    syncAssignments(routeId?: string): Promise<{
        synced: number;
    }>;
    getAssignments(filter: FilterTransportAssignmentsDto): Promise<any[]>;
    recordOfflinePayment(id: string, dto: RecordTransportPaymentDto, adminId: string): Promise<{
        receiptNumber: string;
        studentId: string;
        routeId: string;
        academicYearId: string;
        routeName: string;
        installment: string;
        amount: number;
        fineAmount: number;
        dueDate: Date;
        status: "pending" | "paid";
        paidAt?: Date | undefined;
        paymentMethod?: "razorpay" | "cash" | "cheque" | "bank_transfer" | undefined;
        razorpayOrderId?: string | undefined;
        razorpayPaymentId?: string | undefined;
        razorpaySignature?: string | undefined;
        collectedBy?: string | undefined;
        notes?: string | undefined;
        pickupPoint?: string | undefined;
        isActive: boolean;
        _id: string;
        __v: number;
        createdAt?: Date | undefined;
        updatedAt?: Date | undefined;
        $assertPopulated: <Paths = {}>(path: string | string[], values?: Partial<Paths> | undefined) => Omit<import("./schemas/transport-assignment.schema").TransportAssignmentDocument, keyof Paths> & Paths;
        $clearModifiedPaths: () => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        $clone: () => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        $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) => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        $isEmpty: (path: string) => boolean;
        $isValid: (path: string) => boolean;
        $locals: import("mongoose").FlattenMaps<Record<string, unknown>>;
        $markValid: (path: string) => void;
        $model: {
            <ModelType = import("mongoose").Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = import("mongoose").Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        $op: "save" | "validate" | "remove" | null;
        $restoreModifiedPathsSnapshot: (snapshot: import("mongoose").ModifiedPathsSnapshot) => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        $session: (session?: import("mongoose").ClientSession | null) => import("mongoose").ClientSession | null;
        $set: {
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
            (value: string | Record<string, any>): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        };
        $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<import("./schemas/transport-assignment.schema").TransportAssignmentDocument, 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<import("./schemas/transport-assignment.schema").TransportAssignmentDocument>;
        id?: any;
        increment: () => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        init: (obj: import("mongoose").AnyObject, opts?: import("mongoose").AnyObject) => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        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 = import("mongoose").Model<unknown, {}, {}, {}, import("mongoose").Document<unknown, {}, unknown, {}> & {
                _id: import("mongoose").Types.ObjectId;
            } & {
                __v: number;
            }, any>>(name: string): ModelType;
            <ModelType = import("mongoose").Model<any, {}, {}, {}, any, any>>(): ModelType;
        };
        modifiedPaths: (options?: {
            includeChildren?: boolean;
        }) => Array<string>;
        overwrite: (obj: import("mongoose").AnyObject) => import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        $parent: () => import("mongoose").Document | undefined;
        populate: {
            <Paths = {}>(path: string | import("mongoose").PopulateOptions | (string | import("mongoose").PopulateOptions)[]): Promise<import("mongoose").MergeType<import("./schemas/transport-assignment.schema").TransportAssignmentDocument, Paths>>;
            <Paths = {}>(path: string, select?: string | import("mongoose").AnyObject, model?: import("mongoose").Model<any>, match?: import("mongoose").AnyObject, options?: import("mongoose").PopulateOptions): Promise<import("mongoose").MergeType<import("./schemas/transport-assignment.schema").TransportAssignmentDocument, Paths>>;
        };
        populated: (path: string) => any;
        replaceOne: (replacement?: import("mongoose").AnyObject, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, import("./schemas/transport-assignment.schema").TransportAssignmentDocument, {}, unknown, "find", Record<string, never>>;
        save: (options?: import("mongoose").SaveOptions) => Promise<import("./schemas/transport-assignment.schema").TransportAssignmentDocument>;
        schema: import("mongoose").FlattenMaps<import("mongoose").Schema<any, import("mongoose").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): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
            (path: string | Record<string, any>, val: any, type: any, options?: import("mongoose").DocumentSetOptions): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
            (path: string | Record<string, any>, val: any, options?: import("mongoose").DocumentSetOptions): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
            (value: string | Record<string, any>): import("./schemas/transport-assignment.schema").TransportAssignmentDocument;
        };
        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<import("./schemas/transport-assignment.schema").TransportAssignmentDocument> | undefined, options?: import("mongoose").QueryOptions | null) => import("mongoose").Query<any, import("./schemas/transport-assignment.schema").TransportAssignmentDocument, {}, 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;
        };
    }>;
    toggleTransport(studentId: string, dto: ToggleTransportDto, ctx: RequestContext): Promise<{
        updated: number;
        isActive: boolean;
    }>;
    removeTransport(studentId: string, routeId: string, academicYearId: string, ctx: RequestContext): Promise<{
        deleted: number;
        kept: number;
    }>;
    getStudentTransportStatus(studentId: string, academicYearId?: string): Promise<{
        routeId: string;
        routeName: string;
        isActive: boolean;
        pendingCount: number;
        paidCount: number;
        pickupPoint?: string;
        monthlyFee: number;
    }[]>;
    getStudentDashboardAdmin(studentId: string, academicYearId?: string): Promise<{
        student: import("mongoose").FlattenMaps<import("../students/schemas/student.schema").StudentDocument> & Required<{
            _id: string;
        }>;
        summary: {
            totalFee: any;
            paidAmount: any;
            dueAmount: number;
            nextDueDate: string | null;
        };
        assignments: any[];
    }>;
    getMyDashboard(studentId: string, academicYearId?: string): Promise<{
        student: import("mongoose").FlattenMaps<import("../students/schemas/student.schema").StudentDocument> & Required<{
            _id: string;
        }>;
        summary: {
            totalFee: any;
            paidAmount: any;
            dueAmount: number;
            nextDueDate: string | null;
        };
        assignments: any[];
    }>;
    createOrder(id: string, studentId: string): Promise<{
        orderId: string;
        amount: string | number;
        currency: string;
        keyId: string;
        assignmentId: string;
    }>;
    verifyPayment(id: string, studentId: string, body: VerifyTransportPaymentDto): Promise<{
        status: string;
        receiptNumber: string | undefined;
    }>;
    verifyReceipt(receipt: string): Promise<{
        receiptNumber: string | undefined;
        studentName: string;
        studentId: any;
        rollNumber: string;
        feeName: string;
        installment: string;
        amount: number;
        fineAmount: number;
        totalPaid: number;
        status: "pending" | "paid";
        paidAt: Date | undefined;
        paymentMethod: "razorpay" | "cash" | "cheque" | "bank_transfer" | undefined;
    }>;
    handleWebhook(req: RawBodyRequest<Request>): Promise<{
        received: boolean;
    }>;
}
