import { MembershipRole, SchedulingType } from '../../../prisma/enums';
type User = {
    id: number;
    profile: {
        upId: string;
    };
};
type Filters = {
    teamIds?: number[];
    upIds?: string[];
    schedulingTypes?: SchedulingType[];
};
export type EventTypesByViewer = Awaited<ReturnType<typeof getEventTypesByViewer>>;
export declare const getEventTypesByViewer: (user: User, filters?: Filters, forRoutingForms?: boolean) => Promise<{
    allUsersAcrossAllEventTypes: Map<number, {
        username: string | null;
        name: string | null;
        id: number;
        timeZone: string;
        avatarUrl: string | null;
    } & {
        nonProfileUsername: string | null;
        profile: import('@calcom/types/UserProfile').UserProfile;
    }>;
    eventTypeGroups: {
        eventTypes: {
            userIds: number[];
            safeDescription: string | undefined;
            metadata: {
                apps?: Record<string, any> | undefined;
                smartContractAddress?: string | undefined;
                blockchainId?: number | undefined;
                multipleDuration?: number[] | undefined;
                hideDurationSelectorInBookingPage?: boolean | undefined;
                giphyThankYouPage?: string | undefined;
                additionalNotesRequired?: boolean | undefined;
                disableSuccessPage?: boolean | undefined;
                disableStandardEmails?: {
                    confirmation?: {
                        attendee?: boolean | undefined;
                        host?: boolean | undefined;
                    } | undefined;
                    all?: {
                        attendee?: boolean | undefined;
                        host?: boolean | undefined;
                    } | undefined;
                } | undefined;
                managedEventConfig?: {
                    unlockedFields?: {
                        bookings?: true | undefined;
                        schedule?: true | undefined;
                        profile?: true | undefined;
                        price?: true | undefined;
                        webhooks?: true | undefined;
                        owner?: true | undefined;
                        title?: true | undefined;
                        description?: true | undefined;
                        hidden?: true | undefined;
                        team?: true | undefined;
                        availability?: true | undefined;
                        length?: true | undefined;
                        workflows?: true | undefined;
                        users?: true | undefined;
                        hosts?: true | undefined;
                        currency?: true | undefined;
                        slug?: true | undefined;
                        children?: true | undefined;
                        userId?: true | undefined;
                        metadata?: true | undefined;
                        scheduleId?: true | undefined;
                        createdAt?: true | undefined;
                        updatedAt?: true | undefined;
                        interfaceLanguage?: 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;
                        lockedTimeZone?: true | undefined;
                        requiresConfirmation?: true | undefined;
                        requiresConfirmationWillBlockSlot?: true | undefined;
                        requiresConfirmationForFreeEmail?: true | undefined;
                        requiresBookerEmailVerification?: true | undefined;
                        canSendCalVideoTranscriptionEmails?: true | undefined;
                        autoTranslateDescriptionEnabled?: true | undefined;
                        autoTranslateInstantMeetingTitleEnabled?: 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;
                        showOptimizedSlots?: true | undefined;
                        disableCancelling?: true | undefined;
                        disableRescheduling?: true | undefined;
                        minimumRescheduleNotice?: true | undefined;
                        seatsShowAttendees?: true | undefined;
                        seatsShowAvailabilityCount?: true | undefined;
                        schedulingType?: true | undefined;
                        allowReschedulingCancelledBookings?: true | undefined;
                        slotInterval?: true | undefined;
                        successRedirectUrl?: true | undefined;
                        forwardParamsSuccessRedirect?: true | undefined;
                        redirectUrlOnNoRoutingFormResponse?: 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;
                        includeNoShowInRRCalculation?: true | undefined;
                        allowReschedulingPastBookings?: true | undefined;
                        hideOrganizerEmail?: true | undefined;
                        maxActiveBookingsPerBooker?: true | undefined;
                        maxActiveBookingPerBookerOfferReschedule?: true | undefined;
                        customReplyToEmail?: true | undefined;
                        eventTypeColor?: true | undefined;
                        rescheduleWithSameRoundRobinHost?: true | undefined;
                        secondaryEmailId?: true | undefined;
                        useBookerTimezone?: true | undefined;
                        restrictionScheduleId?: true | undefined;
                        bookingRequiresAuthentication?: true | undefined;
                        rrHostSubsetEnabled?: true | undefined;
                        enablePerHostLocations?: true | undefined;
                        customInputs?: true | undefined;
                        hashedLink?: true | undefined;
                        destinationCalendar?: true | undefined;
                        parent?: true | undefined;
                        instantMeetingSchedule?: true | undefined;
                        aiPhoneCallConfig?: true | undefined;
                        fieldTranslations?: true | undefined;
                        selectedCalendars?: true | undefined;
                        calVideoSettings?: true | undefined;
                        secondaryEmail?: true | undefined;
                        restrictionSchedule?: true | undefined;
                        hostGroups?: true | undefined;
                        _count?: true | undefined;
                    } | undefined;
                } | undefined;
                requiresConfirmationThreshold?: {
                    time: number;
                    unit: import('dayjs').UnitTypeLongPlural;
                } | undefined;
                config?: {
                    useHostSchedulesForTeamEvent?: boolean | undefined;
                } | undefined;
                bookerLayouts?: {
                    enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
                    defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
                } | null | undefined;
            } | null;
            children: {
                users: ({
                    username: string | null;
                    name: string | null;
                    id: number;
                    timeZone: string;
                    avatarUrl: string | null;
                } & {
                    nonProfileUsername: string | null;
                    profile: import('@calcom/types/UserProfile').UserProfile;
                })[];
                price: number;
                title: string;
                description: string | null;
                hidden: boolean;
                length: number;
                currency: string;
                slug: string;
                userId: number | null;
                metadata: import('@prisma/client/runtime/client').JsonValue | null;
                id: number;
                scheduleId: number | null;
                createdAt: Date | null;
                updatedAt: Date | null;
                interfaceLanguage: string | null;
                position: number;
                locations: import('@prisma/client/runtime/client').JsonValue | null;
                offsetStart: number;
                profileId: number | null;
                teamId: number | null;
                useEventLevelSelectedCalendars: boolean;
                eventName: string | null;
                parentId: number | null;
                bookingFields: import('@prisma/client/runtime/client').JsonValue | null;
                timeZone: string | null;
                periodType: import('../../../kysely/types.ts').PeriodType;
                periodStartDate: Date | null;
                periodEndDate: Date | null;
                periodDays: number | null;
                periodCountCalendarDays: boolean | null;
                lockTimeZoneToggleOnBookingPage: boolean;
                lockedTimeZone: string | null;
                requiresConfirmation: boolean;
                requiresConfirmationWillBlockSlot: boolean;
                requiresConfirmationForFreeEmail: boolean;
                requiresBookerEmailVerification: boolean;
                canSendCalVideoTranscriptionEmails: boolean;
                autoTranslateDescriptionEnabled: boolean;
                autoTranslateInstantMeetingTitleEnabled: boolean;
                recurringEvent: import('@prisma/client/runtime/client').JsonValue | null;
                disableGuests: boolean;
                hideCalendarNotes: boolean;
                hideCalendarEventDetails: boolean;
                minimumBookingNotice: number;
                beforeEventBuffer: number;
                afterEventBuffer: number;
                seatsPerTimeSlot: number | null;
                onlyShowFirstAvailableSlot: boolean;
                showOptimizedSlots: boolean | null;
                disableCancelling: boolean | null;
                disableRescheduling: boolean | null;
                minimumRescheduleNotice: number | null;
                seatsShowAttendees: boolean | null;
                seatsShowAvailabilityCount: boolean | null;
                schedulingType: import('../../../kysely/types.ts').SchedulingType | null;
                allowReschedulingCancelledBookings: boolean | null;
                slotInterval: number | null;
                successRedirectUrl: string | null;
                forwardParamsSuccessRedirect: boolean | null;
                redirectUrlOnNoRoutingFormResponse: string | null;
                bookingLimits: import('@prisma/client/runtime/client').JsonValue | null;
                durationLimits: import('@prisma/client/runtime/client').JsonValue | null;
                isInstantEvent: boolean;
                instantMeetingExpiryTimeOffsetInSeconds: number;
                instantMeetingScheduleId: number | null;
                instantMeetingParameters: string[];
                assignAllTeamMembers: boolean;
                assignRRMembersUsingSegment: boolean;
                rrSegmentQueryValue: import('@prisma/client/runtime/client').JsonValue | null;
                useEventTypeDestinationCalendarEmail: boolean;
                isRRWeightsEnabled: boolean;
                maxLeadThreshold: number | null;
                includeNoShowInRRCalculation: boolean;
                allowReschedulingPastBookings: boolean;
                hideOrganizerEmail: boolean;
                maxActiveBookingsPerBooker: number | null;
                maxActiveBookingPerBookerOfferReschedule: boolean;
                customReplyToEmail: string | null;
                eventTypeColor: import('@prisma/client/runtime/client').JsonValue | null;
                rescheduleWithSameRoundRobinHost: boolean;
                secondaryEmailId: number | null;
                useBookerTimezone: boolean;
                restrictionScheduleId: number | null;
                bookingRequiresAuthentication: boolean;
                rrHostSubsetEnabled: boolean;
                enablePerHostLocations: boolean;
            }[];
            price: number;
            owner: {
                timeZone: string;
            } | null;
            title: string;
            description: string | null;
            hidden: boolean;
            team: {
                members: {
                    user: {
                        timeZone: string;
                    };
                }[];
                id: number;
            } | null;
            length: number;
            hosts: ({
                user: {
                    username: string | null;
                    name: string | null;
                    id: number;
                    timeZone: string;
                    avatarUrl: string | null;
                };
            } & {
                weight: number | null;
                userId: number;
                priority: number | null;
                eventTypeId: number;
                isFixed: boolean;
                weightAdjustment: number | null;
                scheduleId: number | null;
                createdAt: Date;
                groupId: string | null;
                memberId: number | null;
            })[];
            currency: string;
            slug: string;
            userId: number | null;
            id: number;
            scheduleId: number | null;
            interfaceLanguage: string | null;
            position: number;
            locations: import('@prisma/client/runtime/client').JsonValue;
            offsetStart: number;
            profileId: number | null;
            teamId: number | null;
            useEventLevelSelectedCalendars: boolean;
            eventName: string | null;
            parentId: number | null;
            bookingFields: import('@prisma/client/runtime/client').JsonValue;
            timeZone: string | null;
            periodType: import('../../../kysely/types.ts').PeriodType;
            periodStartDate: Date | null;
            periodEndDate: Date | null;
            periodDays: number | null;
            periodCountCalendarDays: boolean | null;
            lockTimeZoneToggleOnBookingPage: boolean;
            lockedTimeZone: string | null;
            requiresConfirmation: boolean;
            requiresConfirmationWillBlockSlot: boolean;
            requiresConfirmationForFreeEmail: boolean;
            requiresBookerEmailVerification: boolean;
            canSendCalVideoTranscriptionEmails: boolean;
            autoTranslateDescriptionEnabled: boolean;
            recurringEvent: import('@prisma/client/runtime/client').JsonValue;
            disableGuests: boolean;
            hideCalendarNotes: boolean;
            hideCalendarEventDetails: boolean;
            minimumBookingNotice: number;
            beforeEventBuffer: number;
            afterEventBuffer: number;
            seatsPerTimeSlot: number | null;
            onlyShowFirstAvailableSlot: boolean;
            showOptimizedSlots: boolean | null;
            disableCancelling: boolean | null;
            disableRescheduling: boolean | null;
            minimumRescheduleNotice: number | null;
            seatsShowAttendees: boolean | null;
            seatsShowAvailabilityCount: boolean | null;
            schedulingType: import('../../../kysely/types.ts').SchedulingType | null;
            allowReschedulingCancelledBookings: boolean | null;
            slotInterval: number | null;
            successRedirectUrl: string | null;
            bookingLimits: import('@prisma/client/runtime/client').JsonValue;
            durationLimits: import('@prisma/client/runtime/client').JsonValue;
            isInstantEvent: boolean;
            instantMeetingExpiryTimeOffsetInSeconds: number;
            instantMeetingScheduleId: number | null;
            instantMeetingParameters: string[];
            assignAllTeamMembers: boolean;
            assignRRMembersUsingSegment: boolean;
            rrSegmentQueryValue: import('@prisma/client/runtime/client').JsonValue;
            useEventTypeDestinationCalendarEmail: boolean;
            isRRWeightsEnabled: boolean;
            maxLeadThreshold: number | null;
            allowReschedulingPastBookings: boolean;
            hideOrganizerEmail: boolean;
            customReplyToEmail: string | null;
            eventTypeColor: import('@prisma/client/runtime/client').JsonValue;
            rescheduleWithSameRoundRobinHost: boolean;
            secondaryEmailId: number | null;
            useBookerTimezone: boolean;
            restrictionScheduleId: number | null;
            enablePerHostLocations: boolean;
            hashedLink: {
                link: string;
                id: number;
                expiresAt: Date | null;
                maxUsageCount: number;
                usageCount: number;
            }[];
            instantMeetingSchedule: {
                name: string;
                id: number;
            } | null;
            aiPhoneCallConfig: {
                enabled: boolean;
                id: number;
                eventTypeId: number;
                templateType: string;
                schedulerName: string | null;
                generalPrompt: string | null;
                yourPhoneNumber: string;
                numberToCall: string;
                guestName: string | null;
                guestEmail: string | null;
                guestCompany: string | null;
                beginMessage: string | null;
                llmId: string | null;
            } | null;
        }[];
        teamId?: number | null;
        parentId?: number | null;
        bookerUrl: string;
        membershipRole?: MembershipRole | null;
        profile: {
            slug: (string | null) | null;
            name: string | null;
            image: string;
            eventTypesLockedByOrg?: boolean;
        };
        metadata: {
            membershipCount: number;
            readOnly: boolean;
        };
    }[];
    profiles: {
        teamId: number | null | undefined;
        membershipRole: MembershipRole | null | undefined;
        membershipCount: number;
        readOnly: boolean;
        slug: (string | null) | null;
        name: string | null;
        image: string;
        eventTypesLockedByOrg?: boolean;
    }[];
}>;
export declare function compareMembership(mship1: MembershipRole, mship2: MembershipRole): boolean;
export {};
//# sourceMappingURL=getEventTypesByViewer.d.ts.map