import { Prisma as PrismaClientType } from '../../../../../prisma-client';
import type { PrismaClient } from '../../../../../prisma';
import type { Prisma } from '../../../../../prisma/client';
import type { TrpcSessionUser } from "../../../types";
import type { TGetInputSchema } from "./get.schema";
type GetOptions = {
    ctx: {
        user: NonNullable<TrpcSessionUser>;
        prisma: PrismaClient;
    };
    input: TGetInputSchema;
};
export declare const getHandler: ({ ctx, input }: GetOptions) => Promise<{
    bookings: {
        eventType: {
            recurringEvent: import("@calcom/types/Calendar").RecurringEvent | null;
            eventTypeColor: {
                lightEventTypeColor: string;
                darkEventTypeColor: string;
            } | null;
            price: number;
            currency: string;
            metadata: {
                config?: {
                    useHostSchedulesForTeamEvent?: boolean | undefined;
                } | undefined;
                smartContractAddress?: string | undefined;
                blockchainId?: number | undefined;
                multipleDuration?: number[] | undefined;
                giphyThankYouPage?: string | undefined;
                additionalNotesRequired?: boolean | undefined;
                disableSuccessPage?: boolean | undefined;
                disableStandardEmails?: {
                    all?: {
                        host?: boolean | undefined;
                        attendee?: boolean | undefined;
                    } | undefined;
                    confirmation?: {
                        host?: boolean | undefined;
                        attendee?: boolean | undefined;
                    } | undefined;
                } | undefined;
                managedEventConfig?: {
                    unlockedFields?: {
                        schedule?: true | undefined;
                        profile?: true | undefined;
                        bookings?: true | undefined;
                        users?: true | undefined;
                        children?: true | undefined;
                        length?: true | undefined;
                        title?: true | undefined;
                        metadata?: true | undefined;
                        description?: true | undefined;
                        price?: true | undefined;
                        webhooks?: true | undefined;
                        owner?: true | undefined;
                        hidden?: true | undefined;
                        team?: true | undefined;
                        availability?: true | undefined;
                        workflows?: true | undefined;
                        hosts?: true | undefined;
                        currency?: true | undefined;
                        slug?: true | undefined;
                        userId?: true | undefined;
                        position?: true | undefined;
                        locations?: true | undefined;
                        offsetStart?: true | undefined;
                        profileId?: true | undefined;
                        teamId?: true | undefined;
                        useEventLevelSelectedCalendars?: true | undefined;
                        eventName?: true | undefined;
                        parentId?: true | undefined;
                        bookingFields?: true | undefined;
                        timeZone?: true | undefined;
                        periodType?: true | undefined;
                        periodStartDate?: true | undefined;
                        periodEndDate?: true | undefined;
                        periodDays?: true | undefined;
                        periodCountCalendarDays?: true | undefined;
                        lockTimeZoneToggleOnBookingPage?: true | undefined;
                        requiresConfirmation?: true | undefined;
                        requiresConfirmationWillBlockSlot?: true | undefined;
                        requiresConfirmationForFreeEmail?: true | undefined;
                        requiresBookerEmailVerification?: true | undefined;
                        canSendCalVideoTranscriptionEmails?: true | undefined;
                        autoTranslateDescriptionEnabled?: true | undefined;
                        recurringEvent?: true | undefined;
                        disableGuests?: true | undefined;
                        hideCalendarNotes?: true | undefined;
                        hideCalendarEventDetails?: true | undefined;
                        minimumBookingNotice?: true | undefined;
                        beforeEventBuffer?: true | undefined;
                        afterEventBuffer?: true | undefined;
                        seatsPerTimeSlot?: true | undefined;
                        onlyShowFirstAvailableSlot?: true | undefined;
                        seatsShowAttendees?: true | undefined;
                        seatsShowAvailabilityCount?: true | undefined;
                        schedulingType?: true | undefined;
                        scheduleId?: true | undefined;
                        slotInterval?: true | undefined;
                        successRedirectUrl?: true | undefined;
                        forwardParamsSuccessRedirect?: true | undefined;
                        bookingLimits?: true | undefined;
                        durationLimits?: true | undefined;
                        isInstantEvent?: true | undefined;
                        instantMeetingExpiryTimeOffsetInSeconds?: true | undefined;
                        instantMeetingScheduleId?: true | undefined;
                        instantMeetingParameters?: true | undefined;
                        assignAllTeamMembers?: true | undefined;
                        assignRRMembersUsingSegment?: true | undefined;
                        rrSegmentQueryValue?: true | undefined;
                        useEventTypeDestinationCalendarEmail?: true | undefined;
                        isRRWeightsEnabled?: true | undefined;
                        maxLeadThreshold?: true | undefined;
                        allowReschedulingPastBookings?: true | undefined;
                        eventTypeColor?: true | undefined;
                        rescheduleWithSameRoundRobinHost?: true | undefined;
                        secondaryEmailId?: true | undefined;
                        hashedLink?: true | undefined;
                        destinationCalendar?: true | undefined;
                        customInputs?: true | undefined;
                        parent?: true | undefined;
                        instantMeetingSchedule?: true | undefined;
                        aiPhoneCallConfig?: true | undefined;
                        fieldTranslations?: true | undefined;
                        selectedCalendars?: true | undefined;
                        secondaryEmail?: true | undefined;
                        _count?: true | undefined;
                    } | undefined;
                } | undefined;
                requiresConfirmationThreshold?: {
                    time: number;
                    unit: "months" | "years" | "days" | "hours" | "minutes" | "milliseconds" | "seconds" | "dates";
                } | undefined;
                bookerLayouts?: {
                    enabledLayouts: import('../../../../../prisma/zod-utils').BookerLayouts[];
                    defaultLayout: import('../../../../../prisma/zod-utils').BookerLayouts;
                } | null | undefined;
                apps?: unknown;
            } | null;
            id?: number | undefined;
            length?: number | undefined;
            title?: string | undefined;
            team?: {
                name: string;
                id: number;
                slug: string | null;
            } | null | undefined;
            slug?: string | undefined;
            eventName?: string | null | undefined;
            disableGuests?: boolean | undefined;
            seatsShowAttendees?: boolean | null | undefined;
            seatsShowAvailabilityCount?: boolean | null | undefined;
            schedulingType?: import('../../../../../prisma-client').$Enums.SchedulingType | null | undefined;
            allowReschedulingPastBookings?: boolean | undefined;
        };
        startTime: string;
        endTime: string;
        user: {
            name: string | null;
            id: number;
            email: string;
        } | null;
        id: number;
        title: string;
        metadata: PrismaClientType.JsonValue;
        status: import('../../../../../prisma-client').$Enums.BookingStatus;
        description: string | null;
        paid: boolean;
        payment: {
            success: boolean;
            currency: string;
            paymentOption: import('../../../../../prisma-client').$Enums.PaymentOption | null;
            amount: number;
        }[];
        location: string | null;
        attendees: {
            name: string;
            id: number;
            email: string;
            locale: string | null;
            timeZone: string;
            bookingId: number | null;
            phoneNumber: string | null;
            noShow: boolean | null;
        }[];
        rescheduled: boolean | null;
        uid: string;
        customInputs: PrismaClientType.JsonValue;
        recurringEventId: string | null;
        responses: PrismaClientType.JsonValue;
        assignmentReason: {
            id: number;
            bookingId: number;
            createdAt: Date;
            reasonEnum: import('../../../../../prisma-client').$Enums.AssignmentReasonEnum;
            reasonString: string;
        }[];
        references: {
            id: number;
            type: string;
            uid: string;
            credentialId: number | null;
            deleted: boolean | null;
            bookingId: number | null;
            thirdPartyRecurringEventId: string | null;
            delegationCredentialId: string | null;
            domainWideDelegationCredentialId: string | null;
            meetingId: string | null;
            meetingPassword: string | null;
            meetingUrl: string | null;
            externalCalendarId: string | null;
        }[];
        seatsReferences: {
            attendee: {
                email: string;
            };
            referenceUid: string;
        }[];
        routedFromRoutingFormReponse: {
            id: number;
        } | null;
        userPrimaryEmail: string | null;
        isRecorded: boolean;
    }[];
    recurringInfo: {
        recurringEventId: string | null;
        count: number;
        firstDate: Date | null;
        bookings: {
            [key: string]: Date[];
        };
    }[];
    totalCount: number;
}>;
export declare function getBookings({ user, prisma, passedBookingsStatusFilter, filters, orderBy, take, skip, }: {
    user: {
        id: number;
        email: string;
    };
    filters: TGetInputSchema["filters"];
    prisma: PrismaClient;
    passedBookingsStatusFilter: Prisma.BookingWhereInput;
    orderBy: Prisma.BookingOrderByWithAggregationInput;
    take: number;
    skip: number;
}): Promise<{
    bookings: {
        eventType: {
            recurringEvent: import("@calcom/types/Calendar").RecurringEvent | null;
            eventTypeColor: {
                lightEventTypeColor: string;
                darkEventTypeColor: string;
            } | null;
            price: number;
            currency: string;
            metadata: {
                config?: {
                    useHostSchedulesForTeamEvent?: boolean | undefined;
                } | undefined;
                smartContractAddress?: string | undefined;
                blockchainId?: number | undefined;
                multipleDuration?: number[] | undefined;
                giphyThankYouPage?: string | undefined;
                additionalNotesRequired?: boolean | undefined;
                disableSuccessPage?: boolean | undefined;
                disableStandardEmails?: {
                    all?: {
                        host?: boolean | undefined;
                        attendee?: boolean | undefined;
                    } | undefined;
                    confirmation?: {
                        host?: boolean | undefined;
                        attendee?: boolean | undefined;
                    } | undefined;
                } | undefined;
                managedEventConfig?: {
                    unlockedFields?: {
                        schedule?: true | undefined;
                        profile?: true | undefined;
                        bookings?: true | undefined;
                        users?: true | undefined;
                        children?: true | undefined;
                        length?: true | undefined;
                        title?: true | undefined;
                        metadata?: true | undefined;
                        description?: true | undefined;
                        price?: true | undefined;
                        webhooks?: true | undefined;
                        owner?: true | undefined;
                        hidden?: true | undefined;
                        team?: true | undefined;
                        availability?: true | undefined;
                        workflows?: true | undefined;
                        hosts?: true | undefined;
                        currency?: true | undefined;
                        slug?: true | undefined;
                        userId?: true | undefined;
                        position?: true | undefined;
                        locations?: true | undefined;
                        offsetStart?: true | undefined;
                        profileId?: true | undefined;
                        teamId?: true | undefined;
                        useEventLevelSelectedCalendars?: true | undefined;
                        eventName?: true | undefined;
                        parentId?: true | undefined;
                        bookingFields?: true | undefined;
                        timeZone?: true | undefined;
                        periodType?: true | undefined;
                        periodStartDate?: true | undefined;
                        periodEndDate?: true | undefined;
                        periodDays?: true | undefined;
                        periodCountCalendarDays?: true | undefined;
                        lockTimeZoneToggleOnBookingPage?: true | undefined;
                        requiresConfirmation?: true | undefined;
                        requiresConfirmationWillBlockSlot?: true | undefined;
                        requiresConfirmationForFreeEmail?: true | undefined;
                        requiresBookerEmailVerification?: true | undefined;
                        canSendCalVideoTranscriptionEmails?: true | undefined;
                        autoTranslateDescriptionEnabled?: true | undefined;
                        recurringEvent?: true | undefined;
                        disableGuests?: true | undefined;
                        hideCalendarNotes?: true | undefined;
                        hideCalendarEventDetails?: true | undefined;
                        minimumBookingNotice?: true | undefined;
                        beforeEventBuffer?: true | undefined;
                        afterEventBuffer?: true | undefined;
                        seatsPerTimeSlot?: true | undefined;
                        onlyShowFirstAvailableSlot?: true | undefined;
                        seatsShowAttendees?: true | undefined;
                        seatsShowAvailabilityCount?: true | undefined;
                        schedulingType?: true | undefined;
                        scheduleId?: true | undefined;
                        slotInterval?: true | undefined;
                        successRedirectUrl?: true | undefined;
                        forwardParamsSuccessRedirect?: true | undefined;
                        bookingLimits?: true | undefined;
                        durationLimits?: true | undefined;
                        isInstantEvent?: true | undefined;
                        instantMeetingExpiryTimeOffsetInSeconds?: true | undefined;
                        instantMeetingScheduleId?: true | undefined;
                        instantMeetingParameters?: true | undefined;
                        assignAllTeamMembers?: true | undefined;
                        assignRRMembersUsingSegment?: true | undefined;
                        rrSegmentQueryValue?: true | undefined;
                        useEventTypeDestinationCalendarEmail?: true | undefined;
                        isRRWeightsEnabled?: true | undefined;
                        maxLeadThreshold?: true | undefined;
                        allowReschedulingPastBookings?: true | undefined;
                        eventTypeColor?: true | undefined;
                        rescheduleWithSameRoundRobinHost?: true | undefined;
                        secondaryEmailId?: true | undefined;
                        hashedLink?: true | undefined;
                        destinationCalendar?: true | undefined;
                        customInputs?: true | undefined;
                        parent?: true | undefined;
                        instantMeetingSchedule?: true | undefined;
                        aiPhoneCallConfig?: true | undefined;
                        fieldTranslations?: true | undefined;
                        selectedCalendars?: true | undefined;
                        secondaryEmail?: true | undefined;
                        _count?: true | undefined;
                    } | undefined;
                } | undefined;
                requiresConfirmationThreshold?: {
                    time: number;
                    unit: "months" | "years" | "days" | "hours" | "minutes" | "milliseconds" | "seconds" | "dates";
                } | undefined;
                bookerLayouts?: {
                    enabledLayouts: import('../../../../../prisma/zod-utils').BookerLayouts[];
                    defaultLayout: import('../../../../../prisma/zod-utils').BookerLayouts;
                } | null | undefined;
                apps?: unknown;
            } | null;
            id?: number | undefined;
            length?: number | undefined;
            title?: string | undefined;
            team?: {
                name: string;
                id: number;
                slug: string | null;
            } | null | undefined;
            slug?: string | undefined;
            eventName?: string | null | undefined;
            disableGuests?: boolean | undefined;
            seatsShowAttendees?: boolean | null | undefined;
            seatsShowAvailabilityCount?: boolean | null | undefined;
            schedulingType?: import('../../../../../prisma-client').$Enums.SchedulingType | null | undefined;
            allowReschedulingPastBookings?: boolean | undefined;
        };
        startTime: string;
        endTime: string;
        user: {
            name: string | null;
            id: number;
            email: string;
        } | null;
        id: number;
        title: string;
        metadata: PrismaClientType.JsonValue;
        status: import('../../../../../prisma-client').$Enums.BookingStatus;
        description: string | null;
        paid: boolean;
        payment: {
            success: boolean;
            currency: string;
            paymentOption: import('../../../../../prisma-client').$Enums.PaymentOption | null;
            amount: number;
        }[];
        location: string | null;
        attendees: {
            name: string;
            id: number;
            email: string;
            locale: string | null;
            timeZone: string;
            bookingId: number | null;
            phoneNumber: string | null;
            noShow: boolean | null;
        }[];
        rescheduled: boolean | null;
        uid: string;
        customInputs: PrismaClientType.JsonValue;
        recurringEventId: string | null;
        responses: PrismaClientType.JsonValue;
        assignmentReason: {
            id: number;
            bookingId: number;
            createdAt: Date;
            reasonEnum: import('../../../../../prisma-client').$Enums.AssignmentReasonEnum;
            reasonString: string;
        }[];
        references: {
            id: number;
            type: string;
            uid: string;
            credentialId: number | null;
            deleted: boolean | null;
            bookingId: number | null;
            thirdPartyRecurringEventId: string | null;
            delegationCredentialId: string | null;
            domainWideDelegationCredentialId: string | null;
            meetingId: string | null;
            meetingPassword: string | null;
            meetingUrl: string | null;
            externalCalendarId: string | null;
        }[];
        seatsReferences: {
            attendee: {
                email: string;
            };
            referenceUid: string;
        }[];
        routedFromRoutingFormReponse: {
            id: number;
        } | null;
        userPrimaryEmail: string | null;
        isRecorded: boolean;
    }[];
    recurringInfo: {
        recurringEventId: string | null;
        count: number;
        firstDate: Date | null;
        bookings: {
            [key: string]: Date[];
        };
    }[];
    totalCount: number;
}>;
export {};
//# sourceMappingURL=get.handler.d.ts.map