import type { PrismaClient } from '../../prisma';
import type { Prisma } from '../../prisma/client';
type InputByStatus = "upcoming" | "recurring" | "past" | "cancelled" | "unconfirmed";
type SortOptions = {
    sortStart?: "asc" | "desc";
    sortEnd?: "asc" | "desc";
    sortCreated?: "asc" | "desc";
    sortUpdated?: "asc" | "desc";
};
type GetOptions = {
    ctx: {
        user: {
            id: number;
            email: string;
        };
        prisma: PrismaClient;
    };
    bookingListingByStatus: InputByStatus[];
    take: number;
    skip: number;
    filters: {
        status?: InputByStatus;
        teamIds?: number[] | undefined;
        userIds?: number[] | undefined;
        eventTypeIds?: number[] | undefined;
        attendeeEmail?: string;
        attendeeName?: string;
    };
    sort?: SortOptions;
};
declare const getAllUserBookings: ({ ctx, filters, bookingListingByStatus, take, skip, sort }: 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;
                        length?: true | undefined;
                        position?: true | undefined;
                        title?: true | undefined;
                        metadata?: true | undefined;
                        hidden?: true | undefined;
                        parent?: true | undefined;
                        price?: true | undefined;
                        currency?: true | undefined;
                        description?: true | undefined;
                        children?: true | undefined;
                        userId?: true | undefined;
                        timeZone?: true | undefined;
                        slug?: 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;
                        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;
                        hosts?: true | undefined;
                        users?: true | undefined;
                        owner?: true | undefined;
                        team?: true | undefined;
                        hashedLink?: true | undefined;
                        availability?: true | undefined;
                        webhooks?: true | undefined;
                        destinationCalendar?: true | undefined;
                        customInputs?: true | undefined;
                        workflows?: 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: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates";
                } | undefined;
                bookerLayouts?: {
                    enabledLayouts: import('../../prisma/zod-utils').BookerLayouts[];
                    defaultLayout: import('../../prisma/zod-utils').BookerLayouts;
                } | null | undefined;
                apps?: unknown;
            } | null;
            length?: number | undefined;
            title?: string | undefined;
            id?: number | undefined;
            slug?: string | undefined;
            eventName?: string | null | undefined;
            seatsShowAttendees?: boolean | null | undefined;
            seatsShowAvailabilityCount?: boolean | null | undefined;
            schedulingType?: import('../../prisma-client').$Enums.SchedulingType | null | undefined;
            allowReschedulingPastBookings?: boolean | undefined;
            team?: {
                id: number;
                name: string;
                slug: string | null;
            } | null | undefined;
        };
        startTime: string;
        endTime: string;
        title: string;
        metadata: Prisma.JsonValue;
        id: number;
        location: string | null;
        status: import('../../prisma-client').$Enums.BookingStatus;
        description: string | null;
        user: {
            id: number;
            name: string | null;
            email: string;
        } | null;
        payment: {
            success: boolean;
            currency: string;
            paymentOption: import('../../prisma-client').$Enums.PaymentOption | null;
            amount: number;
        }[];
        customInputs: Prisma.JsonValue;
        recurringEventId: string | null;
        uid: string;
        responses: Prisma.JsonValue;
        assignmentReason: {
            id: number;
            bookingId: number;
            createdAt: Date;
            reasonEnum: import('../../prisma-client').$Enums.AssignmentReasonEnum;
            reasonString: string;
        }[];
        references: {
            type: string;
            id: number;
            credentialId: number | null;
            deleted: boolean | null;
            bookingId: number | null;
            uid: string;
            thirdPartyRecurringEventId: string | null;
            domainWideDelegationCredentialId: string | null;
            meetingId: string | null;
            meetingPassword: string | null;
            meetingUrl: string | null;
            externalCalendarId: string | null;
        }[];
        attendees: {
            id: number;
            name: string;
            email: string;
            timeZone: string;
            bookingId: number | null;
            locale: string | null;
            phoneNumber: string | null;
            noShow: boolean | null;
        }[];
        seatsReferences: {
            attendee: {
                email: string;
            };
            referenceUid: string;
        }[];
        routedFromRoutingFormReponse: {
            id: number;
        } | null;
        userPrimaryEmail: string | null;
        paid: boolean;
        rescheduled: boolean | null;
        isRecorded: boolean;
    }[];
    recurringInfo: {
        recurringEventId: string | null;
        count: number;
        firstDate: Date | null;
        bookings: {
            [key: string]: Date[];
        };
    }[];
    nextCursor: number | null;
}>;
export default getAllUserBookings;
//# sourceMappingURL=getAllUserBookings.d.ts.map