import { UsersType } from 'src/auth/role/user.role';
import { status, VehicleDetailsOwner } from 'src/driver/schema/vehicle-detail.schema';
import { FleetStatus } from 'src/fleet/schema/fleet.schema';
export declare class AdminAggregation {
    match(): Promise<{
        $match: {
            is_active: boolean;
            is_block: boolean;
            is_deleted: boolean;
        };
    }>;
    drivermatch(): Promise<{
        $match: {
            is_active: boolean;
            is_approved: boolean;
            is_deleted: boolean;
            is_block: boolean;
        };
    }>;
    selectedmatch(ids: any): Promise<{
        $match: {
            _id: {
                $in: any;
            };
        };
    }>;
    SessionLookup(): Promise<{
        $lookup: {
            from: string;
            let: {
                user_id: string;
            };
            pipeline: ({
                $match: {
                    $expr: {
                        $and: {
                            $eq: string[];
                        }[];
                    };
                };
                $project?: undefined;
            } | {
                $project: {
                    fcm_token: number;
                };
                $match?: undefined;
            })[];
            as: string;
        };
    }>;
    project(): Promise<{
        $project: {
            email: number;
            sessions: number;
        };
    }>;
    bookingoverallmatch(): Promise<{
        $match: {
            booking_status: {
                $ne: any;
            };
        };
    }>;
    bookingTodaymatch(): Promise<{
        $match: {
            booking_status: {
                $ne: any;
            };
            created_at: {
                $gte: number;
            };
        };
    }>;
    bookingWeekmatch(): Promise<{
        $match: {
            booking_status: {
                $ne: any;
            };
            created_at: {
                $gte: number;
            };
        };
    }>;
    bookingMonthmatch(): Promise<{
        $match: {
            booking_status: {
                $ne: any;
            };
            created_at: {
                $gte: number;
            };
        };
    }>;
    bookingoverallmatchQuery(): Promise<{
        booking_status: {
            $ne: any;
        };
    }>;
    bookingTodaymatchQuery(): Promise<{
        booking_status: {
            $ne: any;
        };
        created_at: {
            $gte: number;
        };
    }>;
    bookingWeekmatchQuery(): Promise<{
        booking_status: {
            $ne: any;
        };
        created_at: {
            $gte: number;
        };
    }>;
    bookingMonthmatchQuery(): Promise<{
        booking_status: {
            $ne: any;
        };
        created_at: {
            $gte: number;
        };
    }>;
    Customersoverallmatch(): Promise<{
        $match: {
            is_email_verify: boolean;
        };
    }>;
    CustomerTodaymatch(): Promise<{
        $match: {
            is_email_verify: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    CustomerWeekmatch(): Promise<{
        $match: {
            is_email_verify: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    CustomerMonthmatch(): Promise<{
        $match: {
            is_email_verify: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    CustomersoverallmatchQuery(): Promise<{
        is_email_verify: boolean;
        is_deleted: boolean;
    }>;
    CustomerTodaymatchQuery(): Promise<{
        is_email_verify: boolean;
        created_at: {
            $gte: number;
        };
        is_deleted: boolean;
    }>;
    CustomerWeekmatchQuery(): Promise<{
        is_email_verify: boolean;
        created_at: {
            $gte: number;
        };
        is_deleted: boolean;
    }>;
    CustomerMonthmatchQuery(): Promise<{
        is_email_verify: boolean;
        created_at: {
            $gte: number;
        };
        is_deleted: boolean;
    }>;
    DriverWeekmatch(): Promise<{
        $match: {
            is_approved: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    DriverTodaymatch(): Promise<{
        $match: {
            is_approved: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    DriverMonthMatch(): Promise<{
        $match: {
            is_approved: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    Driversoverallmatch(): Promise<{
        $match: {
            $nor: ({
                is_deleted: boolean;
                set_up_profile?: undefined;
                set_up_vehicle?: undefined;
                set_up_documents?: undefined;
                is_approved?: undefined;
            } | {
                set_up_profile: boolean;
                is_deleted?: undefined;
                set_up_vehicle?: undefined;
                set_up_documents?: undefined;
                is_approved?: undefined;
            } | {
                set_up_vehicle: boolean;
                is_deleted?: undefined;
                set_up_profile?: undefined;
                set_up_documents?: undefined;
                is_approved?: undefined;
            } | {
                set_up_documents: boolean;
                is_deleted?: undefined;
                set_up_profile?: undefined;
                set_up_vehicle?: undefined;
                is_approved?: undefined;
            } | {
                is_approved: any;
                is_deleted?: undefined;
                set_up_profile?: undefined;
                set_up_vehicle?: undefined;
                set_up_documents?: undefined;
            })[];
        };
    }>;
    DriverIdleMatch(): Promise<{
        $match: {
            is_approved: boolean;
            status: string;
            ride_status: string;
        };
    }>;
    DriverOnRideMatch(): Promise<{
        $match: {
            is_approved: boolean;
            status: string;
            ride_status: string;
        };
    }>;
    DriverOfflineMatch(): Promise<{
        $match: {
            is_approved: boolean;
            status: string;
        };
    }>;
    DriversoverallmatchQuery(): Promise<{
        $nor: ({
            is_deleted: boolean;
            is_approved?: undefined;
        } | {
            is_approved: any;
            is_deleted?: undefined;
        })[];
    }>;
    DriverIdleMatchQuery(): Promise<{
        is_approved: boolean;
        status: string;
        ride_status: string;
        is_active: boolean;
        is_deleted: boolean;
    }>;
    DriverOnRideMatchQuery(): Promise<{
        is_approved: boolean;
        status: string;
        ride_status: string;
        is_active: boolean;
        is_deleted: boolean;
    }>;
    DriverOfflineMatchQuery(): Promise<{
        status: string;
        is_deleted: boolean;
        is_approved: {
            $in: boolean[];
        };
    }>;
    DriverRequestsOverallMatch(): Promise<{
        $match: {
            is_approved: any;
            is_active: boolean;
            approved_on: any;
            set_up_profile: boolean;
            set_up_vehicle: boolean;
            set_up_documents: boolean;
        };
    }>;
    DriverRequestTodaymatch(): Promise<{
        $match: {
            is_approved: any;
            is_active: boolean;
            approved_on: any;
            set_up_profile: boolean;
            set_up_vehicle: boolean;
            set_up_documents: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    DriverRequestWeekmatch(): Promise<{
        $match: {
            is_approved: any;
            is_active: boolean;
            approved_on: any;
            set_up_profile: boolean;
            set_up_vehicle: boolean;
            set_up_documents: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    DriverRequestMonthMatch(): Promise<{
        $match: {
            is_approved: any;
            is_active: boolean;
            approved_on: any;
            set_up_profile: boolean;
            set_up_vehicle: boolean;
            set_up_documents: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    DriverRequestsOverallMatchQuery(): Promise<{
        is_approved: any;
        is_active: boolean;
        approved_on: any;
        set_up_profile: boolean;
        set_up_vehicle: boolean;
        set_up_documents: boolean;
    }>;
    FleetsRequestsMatchQuery(): Promise<{
        status: FleetStatus;
        type: UsersType;
        is_email_verify: boolean;
        is_phone_verify: boolean;
    }>;
    FleetsVehicleRequestsMatchQuery(): Promise<{
        status: status;
        owner: VehicleDetailsOwner;
        fleet_id: {
            $ne: any;
        };
    }>;
    FleetsActiveMatchQuery(): Promise<{
        status: FleetStatus;
        type: UsersType;
        is_email_verify: boolean;
        is_phone_verify: boolean;
    }>;
    FleetsOverallMatchQuery(): Promise<{
        type: UsersType;
        is_email_verify: boolean;
        is_phone_verify: boolean;
    }>;
    DriverRequestTodaymatchQuery(): Promise<{
        is_approved: any;
        is_active: boolean;
        approved_on: any;
        set_up_profile: boolean;
        set_up_vehicle: boolean;
        set_up_documents: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    DriverRequestWeekmatchQuery(): Promise<{
        is_approved: any;
        is_active: boolean;
        approved_on: any;
        set_up_profile: boolean;
        set_up_vehicle: boolean;
        set_up_documents: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    DriverRequestMonthMatchQuery(): Promise<{
        is_approved: any;
        is_active: boolean;
        approved_on: any;
        set_up_profile: boolean;
        set_up_vehicle: boolean;
        set_up_documents: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    Docs_update_request_overallmatch(): Promise<{
        $match: {
            is_approved: any;
            is_doc_update: boolean;
        };
    }>;
    Docs_update_RequestWeekmatch(): Promise<{
        $match: {
            is_approved: any;
            is_doc_update: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    Today_Docs_Updated_RequestTodaymatch(): Promise<{
        $match: {
            is_approved: any;
            is_doc_update: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    Monthly_Docs_Updated_RequestMatch(): Promise<{
        $match: {
            is_approved: any;
            is_doc_update: boolean;
            created_at: {
                $gte: number;
            };
        };
    }>;
    Docs_update_request_overallmatchQuery(): Promise<{
        is_approved: any;
        is_doc_update: boolean;
    }>;
    Docs_update_RequestWeekmatchQuery(): Promise<{
        is_approved: any;
        is_doc_update: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    Today_Docs_Updated_RequestTodaymatchQuery(): Promise<{
        is_approved: any;
        is_doc_update: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    Monthly_Docs_Updated_RequestQuery(): Promise<{
        is_approved: any;
        is_doc_update: boolean;
        created_at: {
            $gte: number;
        };
    }>;
    Earningsoverallmatch(): Promise<{
        $match: {};
    }>;
    todayEarningsoverallmatch(): Promise<{
        $match: {
            created_at: {
                $gte: number;
            };
        };
    }>;
    weekEarningsoverallmatch(): Promise<{
        $match: {
            created_at: {
                $gte: number;
            };
        };
    }>;
    monthlyEarningsoverallmatch(): Promise<{
        $match: {
            created_at: {
                $gte: number;
            };
        };
    }>;
    TodayEarningMatch(): Promise<{
        $match: {
            created_at: {
                $gte: number;
            };
        };
    }>;
    PendingComplaintmatch(): Promise<{
        $match: {
            status: string;
        };
    }>;
    RepliedComplaintmatch(): Promise<{
        $match: {
            status: string;
        };
    }>;
    PendingComplaintmatchQuery(): Promise<{
        status: string;
    }>;
    RepliedComplaintmatchQuery(): Promise<{
        status: string;
    }>;
    face_set(): Promise<{
        $facet: {
            total_earning: {
                $group: {
                    _id: any;
                    total_earning: {
                        $sum: string;
                    };
                };
            }[];
        };
    }>;
    face_set_DueToApp(): Promise<{
        $facet: {
            total_earning: {
                $group: {
                    _id: any;
                    total_earning: {
                        $sum: string;
                    };
                };
            }[];
        };
    }>;
    DueToDrivermatch(): Promise<{
        $match: {};
    }>;
    monthlyDueToAppmatch(): Promise<{
        $match: {
            payout_to_driver: string;
            payment_type: string;
            created_at: {
                $gte: number;
            };
        };
    }>;
    weekDueToAppmatch(): Promise<{
        $match: {
            payout_to_driver: string;
            payment_type: string;
            created_at: {
                $gte: number;
            };
        };
    }>;
    yearDueToAppmatch(): Promise<{
        $match: {
            payout_to_driver: string;
            payment_type: string;
            created_at: {
                $gte: number;
                $lte: number;
            };
        };
    }>;
    monthlyTax(): Promise<{
        $match: {
            payout_to_driver: string;
            payment_type: string;
            created_at: {
                $gte: number;
            };
        };
    }>;
    yearTax(): Promise<{
        $match: {
            created_at: {
                $gte: number;
                $lte: number;
            };
        };
    }>;
    customerDashboardFacet(): Promise<{
        $facet: {
            verified: ({
                $match: {
                    is_phone_verify: boolean;
                    is_email_verify: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pending: ({
                $match: {
                    $or: ({
                        is_active: boolean;
                        is_email_verify?: undefined;
                        is_phone_verify?: undefined;
                    } | {
                        is_email_verify: boolean;
                        is_active?: undefined;
                        is_phone_verify?: undefined;
                    } | {
                        is_phone_verify: boolean;
                        is_active?: undefined;
                        is_email_verify?: undefined;
                    })[];
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            blocked: ({
                $match: {
                    is_block: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
        };
    }[]>;
    driverDashboardFacet(): Promise<{
        $facet: {
            all: ({
                $match: {
                    $or: ({
                        is_active: boolean;
                        is_approved: boolean;
                        is_deleted: boolean;
                        is_block: boolean;
                        reject_reason?: undefined;
                    } | {
                        is_block: boolean;
                        is_active?: undefined;
                        is_approved?: undefined;
                        is_deleted?: undefined;
                        reject_reason?: undefined;
                    } | {
                        is_deleted: boolean;
                        is_active?: undefined;
                        is_approved?: undefined;
                        is_block?: undefined;
                        reject_reason?: undefined;
                    } | {
                        is_active: boolean;
                        is_approved: boolean;
                        is_deleted: boolean;
                        is_block: boolean;
                        reject_reason: {
                            $eq: any;
                        };
                    })[];
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pending_requests: ({
                $match: {
                    is_approved: any;
                    set_up_profile: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            rejected_requests: ({
                $match: {
                    is_active: boolean;
                    is_approved: boolean;
                    set_up_profile: boolean;
                    reject_reason: {
                        $ne: any;
                    };
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            docs_requests: ({
                $match: {
                    is_approved: boolean;
                    is_docs_update: boolean;
                    set_up_profile: boolean;
                    is_deleted: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pending_drivers_list: ({
                $match: {
                    $or: ({
                        is_active: boolean;
                        is_email_verify?: undefined;
                        is_phone_verify?: undefined;
                        set_up_profile?: undefined;
                        is_approved?: undefined;
                        is_docs_update?: undefined;
                    } | {
                        is_email_verify: boolean;
                        is_active?: undefined;
                        is_phone_verify?: undefined;
                        set_up_profile?: undefined;
                        is_approved?: undefined;
                        is_docs_update?: undefined;
                    } | {
                        is_phone_verify: boolean;
                        is_active?: undefined;
                        is_email_verify?: undefined;
                        set_up_profile?: undefined;
                        is_approved?: undefined;
                        is_docs_update?: undefined;
                    } | {
                        set_up_profile: boolean;
                        is_active?: undefined;
                        is_email_verify?: undefined;
                        is_phone_verify?: undefined;
                        is_approved?: undefined;
                        is_docs_update?: undefined;
                    } | {
                        is_approved: boolean;
                        is_active?: undefined;
                        is_email_verify?: undefined;
                        is_phone_verify?: undefined;
                        set_up_profile?: undefined;
                        is_docs_update?: undefined;
                    } | {
                        is_docs_update: boolean;
                        is_active?: undefined;
                        is_email_verify?: undefined;
                        is_phone_verify?: undefined;
                        set_up_profile?: undefined;
                        is_approved?: undefined;
                    })[];
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
        };
    }[]>;
    orderDashboardFacet(): Promise<{
        $facet: {
            total: {
                $count: string;
            }[];
            active: ({
                $match: {
                    order_status: {
                        $in: string[];
                    };
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            delivered: ({
                $match: {
                    order_status: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            cancelled: ({
                $match: {
                    order_status: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pos: ({
                $match: {
                    order_status: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            table_active: ({
                $match: {
                    order_status: {
                        $in: string[];
                    };
                    payment_status: string;
                    order_type: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            table_delivered: ({
                $match: {
                    order_status: string;
                    order_type: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            table_cancelled: ({
                $match: {
                    order_status: string;
                    order_type: string;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
        };
    }[]>;
    restaurantDashboardFacet(): Promise<{
        $facet: {
            overall: ({
                $match: {
                    is_active: boolean;
                    is_block: boolean;
                    is_restaurant_verified: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pending_req: ({
                $match: {
                    verification: string;
                    is_deleted: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            rejected_req: ({
                $match: {
                    verification: string;
                    is_deleted: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            pending_docs: ({
                $match: {
                    doc_update_verification: string;
                    is_deleted: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
            rejected_docs: ({
                $match: {
                    doc_update_verification: string;
                    is_deleted: boolean;
                };
                $count?: undefined;
            } | {
                $count: string;
                $match?: undefined;
            })[];
        };
    }[]>;
    pendingRestaurantPipeline(): Promise<({
        $match: {
            is_deleted: boolean;
            is_block: boolean;
            $or: ({
                is_submit_verification: boolean;
                verification?: undefined;
            } | {
                verification: any;
                is_submit_verification?: undefined;
            })[];
        };
        $project?: undefined;
        $unionWith?: undefined;
        $count?: undefined;
    } | {
        $project: {
            _id: number;
        };
        $match?: undefined;
        $unionWith?: undefined;
        $count?: undefined;
    } | {
        $unionWith: {
            coll: string;
            pipeline: ({
                $match: {
                    is_deleted: boolean;
                    is_block: boolean;
                    existing_restaurants?: undefined;
                };
                $lookup?: undefined;
                $project?: undefined;
            } | {
                $lookup: {
                    from: string;
                    localField: string;
                    foreignField: string;
                    as: string;
                };
                $match?: undefined;
                $project?: undefined;
            } | {
                $match: {
                    existing_restaurants: {
                        $size: number;
                    };
                    is_deleted?: undefined;
                    is_block?: undefined;
                };
                $lookup?: undefined;
                $project?: undefined;
            } | {
                $project: {
                    _id: number;
                };
                $match?: undefined;
                $lookup?: undefined;
            })[];
        };
        $match?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $count: string;
        $match?: undefined;
        $project?: undefined;
        $unionWith?: undefined;
    })[]>;
    unlinkedVendorPipeline(): Promise<({
        $match: {
            is_deleted: boolean;
            is_block: boolean;
            existing_restaurants?: undefined;
        };
        $lookup?: undefined;
        $count?: undefined;
    } | {
        $lookup: {
            from: string;
            localField: string;
            foreignField: string;
            as: string;
        };
        $match?: undefined;
        $count?: undefined;
    } | {
        $match: {
            existing_restaurants: {
                $size: number;
            };
            is_deleted?: undefined;
            is_block?: undefined;
        };
        $lookup?: undefined;
        $count?: undefined;
    } | {
        $count: string;
        $match?: undefined;
        $lookup?: undefined;
    })[]>;
    restaurantMatch(): Promise<{
        $match: {
            is_active: boolean;
            is_block: boolean;
            is_restaurant_verified: boolean;
            is_deleted: boolean;
        };
    }>;
    vendorLookup(): Promise<{
        $lookup: {
            from: string;
            let: {
                user_id: string;
            };
            pipeline: ({
                $match: {
                    $expr: {
                        $eq: string[];
                    };
                };
                $project?: undefined;
            } | {
                $project: {
                    _id: number;
                    email: number;
                    category_name?: undefined;
                    category_image?: undefined;
                };
                $match?: undefined;
            } | {
                $project: {
                    _id: number;
                    category_name: number;
                    category_image: number;
                    email?: undefined;
                };
                $match?: undefined;
            })[];
            as: string;
        };
    }>;
    UnwindvendorLookup(): Promise<{
        $unwind: {
            path: string;
            preserveNullAndEmptyArrays: boolean;
        };
    }>;
    RestaurantSessionLookup(): Promise<{
        $lookup: {
            from: string;
            let: {
                user_id: string;
            };
            pipeline: {
                $match: {
                    $expr: {
                        $eq: string[];
                    };
                };
            }[];
            as: string;
        };
    }>;
    projectVendor(): Promise<{
        $project: {
            email: string;
            vendor: number;
            sessions: number;
        };
    }>;
    topDriversPipline(): Promise<any>;
    topRestaurantPipline(): Promise<any>;
    topCustomerPipline(): Promise<any>;
    driverPayoutPipeline(): Promise<({
        $match: {
            $or: ({
                stripe_customer_id: {
                    $ne: any;
                };
                razor_fund_account_id?: undefined;
            } | {
                razor_fund_account_id: {
                    $ne: any;
                };
                stripe_customer_id?: undefined;
            })[];
            total_driver_earning?: undefined;
        };
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $lookup: {
            from: string;
            let: {
                driver_id: string;
            };
            pipeline: ({
                $match: {
                    $expr: {
                        $and: {
                            $eq: string[];
                        }[];
                    };
                };
                $group?: undefined;
            } | {
                $group: {
                    _id: any;
                    total_driver_earning: {
                        $sum: string;
                    };
                };
                $match?: undefined;
            })[];
            as: string;
        };
        $match?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $addFields: {
            total_driver_earning: {
                $ifNull: (number | {
                    $arrayElemAt: (string | number)[];
                })[];
            };
        };
        $match?: undefined;
        $lookup?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $project: {
            pending_earnings: number;
        };
        $match?: undefined;
        $lookup?: undefined;
        $addFields?: undefined;
        $count?: undefined;
    } | {
        $match: {
            total_driver_earning: {
                $gt: number;
            };
            $or?: undefined;
        };
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $count: string;
        $match?: undefined;
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
    })[]>;
    vendorPayoutPipeline(): Promise<({
        $match: {
            $or: ({
                stripe_customer_id: {
                    $ne: any;
                };
                razor_fund_account_id?: undefined;
            } | {
                razor_fund_account_id: {
                    $ne: any;
                };
                stripe_customer_id?: undefined;
            })[];
            total_restaurant_earning?: undefined;
        };
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $lookup: {
            from: string;
            let: {
                vendor_id: string;
            };
            pipeline: ({
                $match: {
                    $expr: {
                        $and: {
                            $eq: string[];
                        }[];
                    };
                };
                $group?: undefined;
            } | {
                $group: {
                    _id: any;
                    total_restaurant_earning: {
                        $sum: string;
                    };
                };
                $match?: undefined;
            })[];
            as: string;
        };
        $match?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $addFields: {
            total_restaurant_earning: {
                $ifNull: (number | {
                    $arrayElemAt: (string | number)[];
                })[];
            };
        };
        $match?: undefined;
        $lookup?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $project: {
            pending_earnings: number;
        };
        $match?: undefined;
        $lookup?: undefined;
        $addFields?: undefined;
        $count?: undefined;
    } | {
        $match: {
            total_restaurant_earning: {
                $gt: number;
            };
            $or?: undefined;
        };
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
        $count?: undefined;
    } | {
        $count: string;
        $match?: undefined;
        $lookup?: undefined;
        $addFields?: undefined;
        $project?: undefined;
    })[]>;
}
