import type { Session } from "next-auth";
import type { TRPCContextInner } from "../createContext";
type Maybe<T> = T | null | undefined;
export declare function getUserFromSession(ctx: TRPCContextInner, session: Maybe<Session>): Promise<{
    avatar: string;
    organization: {
        id: number | null;
        isOrgAdmin: boolean;
        metadata: {
            requestedSlug?: string | null | undefined;
            paymentId?: string | undefined;
            subscriptionId?: string | null | undefined;
            subscriptionItemId?: string | null | undefined;
            orgSeats?: number | null | undefined;
            orgPricePerSeat?: number | null | undefined;
            migratedToOrgFrom?: {
                teamSlug?: string | null | undefined;
                lastMigrationTime?: string | undefined;
                reverted?: boolean | undefined;
                lastRevertTime?: string | undefined;
            } | undefined;
            billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
        } | null;
        requestedSlug: string | null;
        name?: string | undefined;
        slug?: string | null | undefined;
        organizationSettings?: {
            allowSEOIndexing: boolean;
            lockEventTypeCreationForUsers: boolean;
        } | null | undefined;
        logoUrl?: string | null | undefined;
        isPrivate?: boolean | undefined;
        bannerUrl?: string | null | undefined;
        isPlatform?: boolean | undefined;
    };
    organizationId: number | null;
    id: number;
    email: string;
    username: string | null;
    locale: string;
    defaultBookerLayouts: {
        enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
        defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
    } | null;
    metadata: import('../../../prisma-client').Prisma.JsonValue;
    theme: string | null;
    name: string | null;
    timeZone: string;
    destinationCalendar: {
        id: number;
        credentialId: number | null;
        eventTypeId: number | null;
        userId: number | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        domainWideDelegationCredentialId: string | null;
    } | null;
    startTime: number;
    endTime: number;
    movedToProfileId: number | null;
    emailVerified: Date | null;
    bio: string | null;
    avatarUrl: string | null;
    weekStart: string;
    bufferTime: number;
    hideBranding: boolean;
    appTheme: string | null;
    createdDate: Date;
    trialEndsAt: Date | null;
    defaultScheduleId: number | null;
    completedOnboarding: boolean;
    timeFormat: number | null;
    twoFactorEnabled: boolean;
    identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
    identityProviderId: string | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    allowSEOIndexing: boolean | null;
    receiveMonthlyDigestEmail: boolean | null;
    role: import('../../../prisma-client').$Enums.UserPermissionRole;
    disableImpersonation: boolean;
    profiles: {
        id: number;
        organizationId: number;
        userId: number;
        uid: string;
        username: string;
        createdAt: Date;
        updatedAt: Date;
    }[];
    allSelectedCalendars: {
        eventTypeId: number | null;
        integration: string;
        externalId: string;
    }[];
    userLevelSelectedCalendars: {
        eventTypeId: number | null;
        integration: string;
        externalId: string;
    }[];
    profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
} | {
    avatar: string;
    organization: {
        id: number | null;
        isOrgAdmin: boolean;
        metadata: {
            requestedSlug?: string | null | undefined;
            paymentId?: string | undefined;
            subscriptionId?: string | null | undefined;
            subscriptionItemId?: string | null | undefined;
            orgSeats?: number | null | undefined;
            orgPricePerSeat?: number | null | undefined;
            migratedToOrgFrom?: {
                teamSlug?: string | null | undefined;
                lastMigrationTime?: string | undefined;
                reverted?: boolean | undefined;
                lastRevertTime?: string | undefined;
            } | undefined;
            billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
        } | null;
        requestedSlug: string | null;
        name?: string | undefined;
        slug?: string | null | undefined;
        organizationSettings?: {
            allowSEOIndexing: boolean;
            lockEventTypeCreationForUsers: boolean;
        } | null | undefined;
        logoUrl?: string | null | undefined;
        isPrivate?: boolean | undefined;
        bannerUrl?: string | null | undefined;
        isPlatform?: boolean | undefined;
    };
    organizationId: number | null;
    id: number;
    email: string;
    username: string | null;
    locale: string;
    defaultBookerLayouts: {
        enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
        defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
    } | null;
    metadata: import('../../../prisma-client').Prisma.JsonValue;
    theme: string | null;
    name: string | null;
    timeZone: string;
    destinationCalendar: {
        id: number;
        credentialId: number | null;
        eventTypeId: number | null;
        userId: number | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        domainWideDelegationCredentialId: string | null;
    } | null;
    startTime: number;
    endTime: number;
    movedToProfileId: number | null;
    emailVerified: Date | null;
    bio: string | null;
    avatarUrl: string | null;
    weekStart: string;
    bufferTime: number;
    hideBranding: boolean;
    appTheme: string | null;
    createdDate: Date;
    trialEndsAt: Date | null;
    defaultScheduleId: number | null;
    completedOnboarding: boolean;
    timeFormat: number | null;
    twoFactorEnabled: boolean;
    identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
    identityProviderId: string | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    allowSEOIndexing: boolean | null;
    receiveMonthlyDigestEmail: boolean | null;
    role: import('../../../prisma-client').$Enums.UserPermissionRole;
    disableImpersonation: boolean;
    profiles: {
        id: number;
        organizationId: number;
        userId: number;
        uid: string;
        username: string;
        createdAt: Date;
        updatedAt: Date;
    }[];
    allSelectedCalendars: {
        eventTypeId: number | null;
        integration: string;
        externalId: string;
    }[];
    userLevelSelectedCalendars: {
        eventTypeId: number | null;
        integration: string;
        externalId: string;
    }[];
    profile: {
        name: string | null;
        avatarUrl: string | null;
        startTime: number;
        endTime: number;
        bufferTime: number;
        username: string | null;
        upId: string;
        id: null;
        organizationId: null;
        organization: null;
    } | {
        name: string | null;
        avatarUrl: string | null;
        startTime: number;
        endTime: number;
        bufferTime: number;
        user: {
            id: number;
            name: string | null;
            email: string;
            username: string | null;
            locale: string | null;
            startTime: number;
            endTime: number;
            avatarUrl: string | null;
            bufferTime: number;
            defaultScheduleId: number | null;
            isPlatformManaged: boolean;
        };
        organization: {
            metadata: import('../../../prisma-client').Prisma.JsonValue;
            id: number;
            name: string;
            slug: string | null;
            organizationSettings: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null;
            logoUrl: string | null;
            isPrivate: boolean;
            bannerUrl: string | null;
            isPlatform: boolean;
            members: {
                id: number;
                userId: number;
                teamId: number;
                role: import('../../../prisma-client').$Enums.MembershipRole;
                disableImpersonation: boolean;
                accepted: boolean;
            }[];
        } & Omit<Pick<{
            id: number;
            name: string;
            slug: string | null;
            logoUrl: string | null;
            calVideoLogo: string | null;
            appLogo: string | null;
            appIconLogo: string | null;
            bio: string | null;
            hideBranding: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            createdAt: Date;
            metadata: import('../../../prisma-client').Prisma.JsonValue | null;
            theme: string | null;
            brandColor: string | null;
            darkBrandColor: string | null;
            bannerUrl: string | null;
            parentId: number | null;
            timeFormat: number | null;
            timeZone: string;
            weekStart: string;
            isOrganization: boolean;
            pendingPayment: boolean;
            isPlatform: boolean;
            createdByOAuthClientId: string | null;
            smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
            smsLockReviewedByAdmin: boolean;
            bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
            includeManagedEventsInLimits: boolean;
        }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
            requestedSlug: string | null;
            metadata: {
                requestedSlug: string | null;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            };
        };
        movedFromUser: {
            id: number;
        } | null;
        id: number;
        organizationId: number;
        userId: number;
        uid: string;
        username: string;
        createdAt: Date & string;
        updatedAt: Date & string;
        upId: string;
    };
} | null>;
export type UserFromSession = Awaited<ReturnType<typeof getUserFromSession>>;
export declare const getUserSession: (ctx: TRPCContextInner) => Promise<{
    user: {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
    } | {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            username: string | null;
            upId: string;
            id: null;
            organizationId: null;
            organization: null;
        } | {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                locale: string | null;
                startTime: number;
                endTime: number;
                avatarUrl: string | null;
                bufferTime: number;
                defaultScheduleId: number | null;
                isPlatformManaged: boolean;
            };
            organization: {
                metadata: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                organizationSettings: {
                    allowSEOIndexing: boolean;
                    lockEventTypeCreationForUsers: boolean;
                } | null;
                logoUrl: string | null;
                isPrivate: boolean;
                bannerUrl: string | null;
                isPlatform: boolean;
                members: {
                    id: number;
                    userId: number;
                    teamId: number;
                    role: import('../../../prisma-client').$Enums.MembershipRole;
                    disableImpersonation: boolean;
                    accepted: boolean;
                }[];
            } & Omit<Pick<{
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                createdAt: Date;
                metadata: import('../../../prisma-client').Prisma.JsonValue | null;
                theme: string | null;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                parentId: number | null;
                timeFormat: number | null;
                timeZone: string;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
                includeManagedEventsInLimits: boolean;
            }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
                requestedSlug: string | null;
                metadata: {
                    requestedSlug: string | null;
                    paymentId?: string | undefined;
                    subscriptionId?: string | null | undefined;
                    subscriptionItemId?: string | null | undefined;
                    orgSeats?: number | null | undefined;
                    orgPricePerSeat?: number | null | undefined;
                    migratedToOrgFrom?: {
                        teamSlug?: string | null | undefined;
                        lastMigrationTime?: string | undefined;
                        reverted?: boolean | undefined;
                        lastRevertTime?: string | undefined;
                    } | undefined;
                    billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
                };
            };
            movedFromUser: {
                id: number;
            } | null;
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date & string;
            updatedAt: Date & string;
            upId: string;
        };
    } | null;
    session: {
        upId: string;
        hasValidLicense: boolean;
        profileId?: number | null;
        user: import("next-auth").User;
        expires: import("next-auth").ISODateString;
    } | null;
}>;
declare const sessionMiddleware: import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<import("../createContext").InnerContext, object, {
    user: {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
    } | {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            username: string | null;
            upId: string;
            id: null;
            organizationId: null;
            organization: null;
        } | {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                locale: string | null;
                startTime: number;
                endTime: number;
                avatarUrl: string | null;
                bufferTime: number;
                defaultScheduleId: number | null;
                isPlatformManaged: boolean;
            };
            organization: {
                metadata: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                organizationSettings: {
                    allowSEOIndexing: boolean;
                    lockEventTypeCreationForUsers: boolean;
                } | null;
                logoUrl: string | null;
                isPrivate: boolean;
                bannerUrl: string | null;
                isPlatform: boolean;
                members: {
                    id: number;
                    userId: number;
                    teamId: number;
                    role: import('../../../prisma-client').$Enums.MembershipRole;
                    disableImpersonation: boolean;
                    accepted: boolean;
                }[];
            } & Omit<Pick<{
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                createdAt: Date;
                metadata: import('../../../prisma-client').Prisma.JsonValue | null;
                theme: string | null;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                parentId: number | null;
                timeFormat: number | null;
                timeZone: string;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
                includeManagedEventsInLimits: boolean;
            }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
                requestedSlug: string | null;
                metadata: {
                    requestedSlug: string | null;
                    paymentId?: string | undefined;
                    subscriptionId?: string | null | undefined;
                    subscriptionItemId?: string | null | undefined;
                    orgSeats?: number | null | undefined;
                    orgPricePerSeat?: number | null | undefined;
                    migratedToOrgFrom?: {
                        teamSlug?: string | null | undefined;
                        lastMigrationTime?: string | undefined;
                        reverted?: boolean | undefined;
                        lastRevertTime?: string | undefined;
                    } | undefined;
                    billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
                };
            };
            movedFromUser: {
                id: number;
            } | null;
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date & string;
            updatedAt: Date & string;
            upId: string;
        };
    } | null;
    session: {
        upId: string;
        hasValidLicense: boolean;
        profileId?: number | null;
        user: import("next-auth").User;
        expires: import("next-auth").ISODateString;
    } | null;
}, unknown>;
export declare const isAuthed: import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<import("../createContext").InnerContext, object, {
    user: {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
    } | {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            username: string | null;
            upId: string;
            id: null;
            organizationId: null;
            organization: null;
        } | {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                locale: string | null;
                startTime: number;
                endTime: number;
                avatarUrl: string | null;
                bufferTime: number;
                defaultScheduleId: number | null;
                isPlatformManaged: boolean;
            };
            organization: {
                metadata: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                organizationSettings: {
                    allowSEOIndexing: boolean;
                    lockEventTypeCreationForUsers: boolean;
                } | null;
                logoUrl: string | null;
                isPrivate: boolean;
                bannerUrl: string | null;
                isPlatform: boolean;
                members: {
                    id: number;
                    userId: number;
                    teamId: number;
                    role: import('../../../prisma-client').$Enums.MembershipRole;
                    disableImpersonation: boolean;
                    accepted: boolean;
                }[];
            } & Omit<Pick<{
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                createdAt: Date;
                metadata: import('../../../prisma-client').Prisma.JsonValue | null;
                theme: string | null;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                parentId: number | null;
                timeFormat: number | null;
                timeZone: string;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
                includeManagedEventsInLimits: boolean;
            }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
                requestedSlug: string | null;
                metadata: {
                    requestedSlug: string | null;
                    paymentId?: string | undefined;
                    subscriptionId?: string | null | undefined;
                    subscriptionItemId?: string | null | undefined;
                    orgSeats?: number | null | undefined;
                    orgPricePerSeat?: number | null | undefined;
                    migratedToOrgFrom?: {
                        teamSlug?: string | null | undefined;
                        lastMigrationTime?: string | undefined;
                        reverted?: boolean | undefined;
                        lastRevertTime?: string | undefined;
                    } | undefined;
                    billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
                };
            };
            movedFromUser: {
                id: number;
            } | null;
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date & string;
            updatedAt: Date & string;
            upId: string;
        };
    };
    session: {
        upId: string;
        hasValidLicense: boolean;
        profileId?: number | null;
        user: import("next-auth").User;
        expires: import("next-auth").ISODateString;
    };
}, unknown>;
export declare const isAdminMiddleware: import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<import("../createContext").InnerContext, object, {
    user: {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
    } | {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            username: string | null;
            upId: string;
            id: null;
            organizationId: null;
            organization: null;
        } | {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                locale: string | null;
                startTime: number;
                endTime: number;
                avatarUrl: string | null;
                bufferTime: number;
                defaultScheduleId: number | null;
                isPlatformManaged: boolean;
            };
            organization: {
                metadata: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                organizationSettings: {
                    allowSEOIndexing: boolean;
                    lockEventTypeCreationForUsers: boolean;
                } | null;
                logoUrl: string | null;
                isPrivate: boolean;
                bannerUrl: string | null;
                isPlatform: boolean;
                members: {
                    id: number;
                    userId: number;
                    teamId: number;
                    role: import('../../../prisma-client').$Enums.MembershipRole;
                    disableImpersonation: boolean;
                    accepted: boolean;
                }[];
            } & Omit<Pick<{
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                createdAt: Date;
                metadata: import('../../../prisma-client').Prisma.JsonValue | null;
                theme: string | null;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                parentId: number | null;
                timeFormat: number | null;
                timeZone: string;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
                includeManagedEventsInLimits: boolean;
            }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
                requestedSlug: string | null;
                metadata: {
                    requestedSlug: string | null;
                    paymentId?: string | undefined;
                    subscriptionId?: string | null | undefined;
                    subscriptionItemId?: string | null | undefined;
                    orgSeats?: number | null | undefined;
                    orgPricePerSeat?: number | null | undefined;
                    migratedToOrgFrom?: {
                        teamSlug?: string | null | undefined;
                        lastMigrationTime?: string | undefined;
                        reverted?: boolean | undefined;
                        lastRevertTime?: string | undefined;
                    } | undefined;
                    billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
                };
            };
            movedFromUser: {
                id: number;
            } | null;
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date & string;
            updatedAt: Date & string;
            upId: string;
        };
    };
    session: {
        upId: string;
        hasValidLicense: boolean;
        profileId?: number | null;
        user: import("next-auth").User;
        expires: import("next-auth").ISODateString;
    };
}, unknown>;
export declare const isOrgAdminMiddleware: import("@trpc/server/unstable-core-do-not-import").MiddlewareBuilder<import("../createContext").InnerContext, object, {
    user: {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: import("@calcom/types/UserProfile").UserAsPersonalProfile;
    } | {
        avatar: string;
        organization: {
            id: number | null;
            isOrgAdmin: boolean;
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            requestedSlug: string | null;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                allowSEOIndexing: boolean;
                lockEventTypeCreationForUsers: boolean;
            } | null | undefined;
            logoUrl?: string | null | undefined;
            isPrivate?: boolean | undefined;
            bannerUrl?: string | null | undefined;
            isPlatform?: boolean | undefined;
        };
        organizationId: number | null;
        id: number;
        email: string;
        username: string | null;
        locale: string;
        defaultBookerLayouts: {
            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
        } | null;
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        name: string | null;
        timeZone: string;
        destinationCalendar: {
            id: number;
            credentialId: number | null;
            eventTypeId: number | null;
            userId: number | null;
            integration: string;
            externalId: string;
            primaryEmail: string | null;
            domainWideDelegationCredentialId: string | null;
        } | null;
        startTime: number;
        endTime: number;
        movedToProfileId: number | null;
        emailVerified: Date | null;
        bio: string | null;
        avatarUrl: string | null;
        weekStart: string;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorEnabled: boolean;
        identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
        identityProviderId: string | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        role: import('../../../prisma-client').$Enums.UserPermissionRole;
        disableImpersonation: boolean;
        profiles: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        }[];
        allSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        userLevelSelectedCalendars: {
            eventTypeId: number | null;
            integration: string;
            externalId: string;
        }[];
        profile: {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            username: string | null;
            upId: string;
            id: null;
            organizationId: null;
            organization: null;
        } | {
            name: string | null;
            avatarUrl: string | null;
            startTime: number;
            endTime: number;
            bufferTime: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                locale: string | null;
                startTime: number;
                endTime: number;
                avatarUrl: string | null;
                bufferTime: number;
                defaultScheduleId: number | null;
                isPlatformManaged: boolean;
            };
            organization: {
                metadata: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                organizationSettings: {
                    allowSEOIndexing: boolean;
                    lockEventTypeCreationForUsers: boolean;
                } | null;
                logoUrl: string | null;
                isPrivate: boolean;
                bannerUrl: string | null;
                isPlatform: boolean;
                members: {
                    id: number;
                    userId: number;
                    teamId: number;
                    role: import('../../../prisma-client').$Enums.MembershipRole;
                    disableImpersonation: boolean;
                    accepted: boolean;
                }[];
            } & Omit<Pick<{
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                createdAt: Date;
                metadata: import('../../../prisma-client').Prisma.JsonValue | null;
                theme: string | null;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                parentId: number | null;
                timeFormat: number | null;
                timeZone: string;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                bookingLimits: import('../../../prisma-client').Prisma.JsonValue | null;
                includeManagedEventsInLimits: boolean;
            }, "metadata" | "id" | "name" | "slug" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
                requestedSlug: string | null;
                metadata: {
                    requestedSlug: string | null;
                    paymentId?: string | undefined;
                    subscriptionId?: string | null | undefined;
                    subscriptionItemId?: string | null | undefined;
                    orgSeats?: number | null | undefined;
                    orgPricePerSeat?: number | null | undefined;
                    migratedToOrgFrom?: {
                        teamSlug?: string | null | undefined;
                        lastMigrationTime?: string | undefined;
                        reverted?: boolean | undefined;
                        lastRevertTime?: string | undefined;
                    } | undefined;
                    billingPeriod?: import('../../../prisma/zod-utils').BillingPeriod | undefined;
                };
            };
            movedFromUser: {
                id: number;
            } | null;
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date & string;
            updatedAt: Date & string;
            upId: string;
        };
    };
    session: {
        upId: string;
        hasValidLicense: boolean;
        profileId?: number | null;
        user: import("next-auth").User;
        expires: import("next-auth").ISODateString;
    };
}, unknown>;
export default sessionMiddleware;
//# sourceMappingURL=sessionMiddleware.d.ts.map