export declare class OrganizationRepository {
    static createWithExistingUserAsOwner({ orgData, owner, }: {
        orgData: {
            name: string;
            slug: string;
            isOrganizationConfigured: boolean;
            isOrganizationAdminReviewed: boolean;
            autoAcceptEmail: string;
            seats: number | null;
            pricePerSeat: number | null;
            isPlatform: boolean;
            billingPeriod?: "MONTHLY" | "ANNUALLY";
        };
        owner: {
            id: number;
            email: string;
            nonOrgUsername: string;
        };
    }): Promise<{
        organization: {
            metadata: import('../../../prisma-client').Prisma.JsonValue;
            theme: string | null;
            id: number;
            name: string;
            timeZone: string;
            slug: string | null;
            parentId: number | null;
            bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
            createdAt: Date;
            logoUrl: string | null;
            calVideoLogo: string | null;
            appLogo: string | null;
            appIconLogo: string | null;
            bio: string | null;
            hideBranding: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            brandColor: string | null;
            darkBrandColor: string | null;
            bannerUrl: string | null;
            timeFormat: number | null;
            weekStart: string;
            isOrganization: boolean;
            pendingPayment: boolean;
            isPlatform: boolean;
            createdByOAuthClientId: string | null;
            smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
            smsLockReviewedByAdmin: boolean;
            includeManagedEventsInLimits: boolean;
        };
        ownerProfile: {
            id: number;
            organizationId: number;
            userId: number;
            uid: string;
            username: string;
            createdAt: Date;
            updatedAt: Date;
        };
    }>;
    static createWithNonExistentOwner({ orgData, owner, }: {
        orgData: {
            name: string;
            slug: string;
            isOrganizationConfigured: boolean;
            isOrganizationAdminReviewed: boolean;
            autoAcceptEmail: string;
            seats: number | null;
            billingPeriod?: "MONTHLY" | "ANNUALLY";
            pricePerSeat: number | null;
            isPlatform: boolean;
        };
        owner: {
            email: string;
        };
    }): Promise<{
        orgOwner: {
            metadata: import('../../../prisma-client').Prisma.JsonValue;
            theme: string | null;
            id: number;
            name: string | null;
            email: string;
            organizationId: number | null;
            timeZone: string;
            username: string | null;
            locale: string | null;
            startTime: number;
            endTime: number;
            bio: string | null;
            hideBranding: boolean;
            brandColor: string | null;
            darkBrandColor: string | null;
            timeFormat: number | null;
            weekStart: string;
            smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
            smsLockReviewedByAdmin: boolean;
            emailVerified: Date | null;
            avatarUrl: string | null;
            bufferTime: number;
            appTheme: string | null;
            createdDate: Date;
            trialEndsAt: Date | null;
            defaultScheduleId: number | null;
            completedOnboarding: boolean;
            twoFactorSecret: string | null;
            twoFactorEnabled: boolean;
            backupCodes: string | null;
            identityProvider: import('../../../prisma-client').$Enums.IdentityProvider;
            identityProviderId: string | null;
            invitedTo: number | null;
            allowDynamicBooking: boolean | null;
            allowSEOIndexing: boolean | null;
            receiveMonthlyDigestEmail: boolean | null;
            verified: boolean | null;
            role: import('../../../prisma-client').$Enums.UserPermissionRole;
            disableImpersonation: boolean;
            locked: boolean;
            movedToProfileId: number | null;
            isPlatformManaged: boolean;
            referralLinkId: string | null;
        };
        organization: {
            metadata: import('../../../prisma-client').Prisma.JsonValue;
            theme: string | null;
            id: number;
            name: string;
            timeZone: string;
            slug: string | null;
            parentId: number | null;
            bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
            createdAt: Date;
            logoUrl: string | null;
            calVideoLogo: string | null;
            appLogo: string | null;
            appIconLogo: string | null;
            bio: string | null;
            hideBranding: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            brandColor: string | null;
            darkBrandColor: string | null;
            bannerUrl: string | null;
            timeFormat: number | null;
            weekStart: string;
            isOrganization: boolean;
            pendingPayment: boolean;
            isPlatform: boolean;
            createdByOAuthClientId: string | null;
            smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
            smsLockReviewedByAdmin: boolean;
            includeManagedEventsInLimits: boolean;
        };
        ownerProfile: {
            username: string;
        };
    }>;
    static create(orgData: {
        name: string;
        slug: string;
        isOrganizationConfigured: boolean;
        isOrganizationAdminReviewed: boolean;
        autoAcceptEmail: string;
        seats: number | null;
        billingPeriod?: "MONTHLY" | "ANNUALLY";
        pricePerSeat: number | null;
        isPlatform: boolean;
    }): Promise<{
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        id: number;
        name: string;
        timeZone: string;
        slug: string | null;
        parentId: number | null;
        bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
        createdAt: Date;
        logoUrl: string | null;
        calVideoLogo: string | null;
        appLogo: string | null;
        appIconLogo: string | null;
        bio: string | null;
        hideBranding: boolean;
        isPrivate: boolean;
        hideBookATeamMember: boolean;
        brandColor: string | null;
        darkBrandColor: string | null;
        bannerUrl: string | null;
        timeFormat: number | null;
        weekStart: string;
        isOrganization: boolean;
        pendingPayment: boolean;
        isPlatform: boolean;
        createdByOAuthClientId: string | null;
        smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
        smsLockReviewedByAdmin: boolean;
        includeManagedEventsInLimits: boolean;
    }>;
    static findById({ id }: {
        id: number;
    }): Promise<{
        id: number;
        name: string;
        slug: string | null;
        logoUrl: string | null;
    } | null>;
    static findByIdIncludeOrganizationSettings({ id }: {
        id: number;
    }): Promise<{
        id: number;
        name: string;
        slug: string | null;
        organizationSettings: {
            id: number;
            organizationId: number;
            isOrganizationVerified: boolean;
            isOrganizationConfigured: boolean;
            isAdminReviewed: boolean;
            orgAutoAcceptEmail: string;
            isAdminAPIEnabled: boolean;
            lockEventTypeCreationForUsers: boolean;
            adminGetsNoSlotsNotification: boolean;
        } | null;
        logoUrl: string | null;
    } | null>;
    static findUniqueNonPlatformOrgsByMatchingAutoAcceptEmail({ email }: {
        email: string;
    }): Promise<(Omit<{
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        id: number;
        name: string;
        timeZone: string;
        slug: string | null;
        parentId: number | null;
        bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
        createdAt: Date;
        logoUrl: string | null;
        calVideoLogo: string | null;
        appLogo: string | null;
        appIconLogo: string | null;
        bio: string | null;
        hideBranding: boolean;
        isPrivate: boolean;
        hideBookATeamMember: boolean;
        brandColor: string | null;
        darkBrandColor: string | null;
        bannerUrl: string | null;
        timeFormat: number | null;
        weekStart: string;
        isOrganization: boolean;
        pendingPayment: boolean;
        isPlatform: boolean;
        createdByOAuthClientId: string | null;
        smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
        smsLockReviewedByAdmin: boolean;
        includeManagedEventsInLimits: boolean;
    }, "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;
        };
    }) | null>;
    static findCurrentOrg({ userId, orgId }: {
        userId: number;
        orgId: number;
    }): Promise<{
        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;
        theme: string | null;
        id: number;
        name: string;
        timeZone: string;
        slug: string | null;
        parentId: number | null;
        bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
        createdAt: Date;
        logoUrl: string | null;
        calVideoLogo: string | null;
        appLogo: string | null;
        appIconLogo: string | null;
        bio: string | null;
        hideBranding: boolean;
        isPrivate: boolean;
        hideBookATeamMember: boolean;
        brandColor: string | null;
        darkBrandColor: string | null;
        bannerUrl: string | null;
        timeFormat: number | null;
        weekStart: string;
        isOrganization: boolean;
        pendingPayment: boolean;
        isPlatform: boolean;
        createdByOAuthClientId: string | null;
        smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
        smsLockReviewedByAdmin: boolean;
        includeManagedEventsInLimits: boolean;
        canAdminImpersonate: boolean;
        organizationSettings: {
            lockEventTypeCreationForUsers: boolean | undefined;
            adminGetsNoSlotsNotification: boolean | undefined;
        };
        user: {
            role: import('../../../prisma-client').$Enums.MembershipRole;
            accepted: boolean;
        };
    }>;
    static findTeamsInOrgIamNotPartOf({ userId, parentId }: {
        userId: number;
        parentId: number | null;
    }): Promise<{
        metadata: import('../../../prisma-client').Prisma.JsonValue;
        theme: string | null;
        id: number;
        name: string;
        timeZone: string;
        slug: string | null;
        parentId: number | null;
        bookingLimits: import('../../../prisma-client').Prisma.JsonValue;
        createdAt: Date;
        logoUrl: string | null;
        calVideoLogo: string | null;
        appLogo: string | null;
        appIconLogo: string | null;
        bio: string | null;
        hideBranding: boolean;
        isPrivate: boolean;
        hideBookATeamMember: boolean;
        brandColor: string | null;
        darkBrandColor: string | null;
        bannerUrl: string | null;
        timeFormat: number | null;
        weekStart: string;
        isOrganization: boolean;
        pendingPayment: boolean;
        isPlatform: boolean;
        createdByOAuthClientId: string | null;
        smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
        smsLockReviewedByAdmin: boolean;
        includeManagedEventsInLimits: boolean;
    }[]>;
    static adminFindById({ id }: {
        id: number;
    }): Promise<{
        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;
        id: number;
        name: string;
        slug: string | null;
        organizationSettings: {
            isOrganizationVerified: boolean;
            isOrganizationConfigured: boolean;
            orgAutoAcceptEmail: string;
        } | null;
        isOrganization: boolean;
        members: {
            user: {
                id: number;
                name: string | null;
                email: string;
            };
        }[];
    }>;
}
//# sourceMappingURL=organization.d.ts.map