import { Prisma } from '../../../../prisma-client';
import type { NewBookingEventType } from "./getEventTypesFromDB";
type EventType = Pick<NewBookingEventType, "hosts" | "users" | "id" | "schedulingType" | "team" | "assignAllTeamMembers" | "assignRRMembersUsingSegment" | "rrSegmentQueryValue">;
export declare const loadUsers: ({ eventType, dynamicUserList, hostname, forcedSlug, isPlatform, routedTeamMemberIds, contactOwnerEmail, }: {
    eventType: EventType;
    dynamicUserList: string[];
    routedTeamMemberIds: number[] | null;
    contactOwnerEmail: string | null;
    hostname: string;
    forcedSlug: string | undefined;
    isPlatform: boolean;
}) => Promise<(Omit<{
    schedules: {
        id: number;
        availability: {
            days: number[];
            date: Date | null;
            startTime: Date;
            endTime: Date;
        }[];
        timeZone: string | null;
    }[];
    name: string | null;
    id: number;
    metadata: Prisma.JsonValue;
    username: string | null;
    email: string;
    availability: {
        id: number;
        days: number[];
        date: Date | null;
        userId: number | null;
        eventTypeId: number | null;
        scheduleId: number | null;
        startTime: Date;
        endTime: Date;
    }[];
    theme: string | null;
    locked: boolean;
    locale: string | null;
    credentials: {
        key: Prisma.JsonValue;
        user: {
            email: string;
        } | null;
        id: number;
        type: string;
        userId: number | null;
        teamId: number | null;
        delegationCredentialId: string | null;
        appId: string | null;
        invalid: boolean | null;
    }[];
    timeZone: string;
    destinationCalendar: {
        id: number;
        userId: number | null;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
    } | null;
    selectedCalendars: {
        error: string | null;
        id: string;
        userId: number;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    startTime: number;
    endTime: number;
    bufferTime: number;
    hideBranding: boolean;
    defaultScheduleId: number | null;
    timeFormat: number | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    travelSchedules: {
        id: number;
        userId: number;
        timeZone: string;
        startDate: Date;
        endDate: Date | null;
        prevTimeZone: string | null;
    }[];
}, "selectedCalendars"> & {
    allSelectedCalendars: {
        error: string | null;
        id: string;
        userId: number;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    userLevelSelectedCalendars: {
        error: string | null;
        id: string;
        userId: number;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
})[]>;
/**
 * This method is mostly same as the one in UserRepository but it includes a lot more relations which are specific requirement here
 * TODO: Figure out how to keep it in UserRepository and use it here
 */
export declare const findUsersByUsername: ({ usernameList, orgSlug, }: {
    orgSlug: string | null;
    usernameList: string[];
}) => Promise<{
    organizationId: number | null;
    profile: {
        organization: Omit<{
            name: string;
            id: number;
            metadata: Prisma.JsonValue;
            slug: string | null;
            organizationSettings: {
                allowSEOIndexing: boolean;
                orgProfileRedirectsToVerifiedDomain: boolean;
            } | null;
            hideBranding: boolean;
            logoUrl: string | null;
            bannerUrl: string | null;
            isPlatform: 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;
            hideTeamProfileLink: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            createdAt: Date;
            metadata: Prisma.JsonValue | null;
            theme: string | null;
            rrResetInterval: import('../../../../prisma-client').$Enums.RRResetInterval | null;
            rrTimestampBasis: import('../../../../prisma-client').$Enums.RRTimestampBasis;
            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: Prisma.JsonValue | null;
            includeManagedEventsInLimits: boolean;
        }, "name" | "id" | "metadata" | "slug" | "hideBranding" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
            requestedSlug: string | null;
            metadata: {
                requestedSlug: string | null;
                defaultConferencingApp?: {
                    appSlug?: string | undefined;
                    appLink?: string | undefined;
                } | 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;
            };
        }, "metadata"> & {
            requestedSlug: string | null;
            metadata: {
                requestedSlug: string | null;
                defaultConferencingApp?: {
                    appSlug?: string | undefined;
                    appLink?: string | undefined;
                } | 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;
            };
        };
        user: {
            name: string | null;
            id: number;
            username: string | null;
            email: string;
            locale: string | null;
            startTime: number;
            endTime: number;
            avatarUrl: string | null;
            bufferTime: number;
            defaultScheduleId: number | null;
            isPlatformManaged: boolean;
        };
        id: number;
        username: string;
        uid: string;
        organizationId: number;
        userId: number;
        createdAt: Date & string;
        updatedAt: Date & string;
        upId: string;
    } | null;
    schedules: {
        id: number;
        availability: {
            days: number[];
            date: Date | null;
            startTime: Date;
            endTime: Date;
        }[];
        timeZone: string | null;
    }[];
    name: string | null;
    id: number;
    metadata: Prisma.JsonValue;
    username: string | null;
    email: string;
    availability: {
        id: number;
        days: number[];
        date: Date | null;
        userId: number | null;
        eventTypeId: number | null;
        scheduleId: number | null;
        startTime: Date;
        endTime: Date;
    }[];
    theme: string | null;
    locked: boolean;
    locale: string | null;
    credentials: {
        key: Prisma.JsonValue;
        user: {
            email: string;
        } | null;
        id: number;
        type: string;
        userId: number | null;
        teamId: number | null;
        delegationCredentialId: string | null;
        appId: string | null;
        invalid: boolean | null;
    }[];
    timeZone: string;
    destinationCalendar: {
        id: number;
        userId: number | null;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
    } | null;
    startTime: number;
    endTime: number;
    bufferTime: number;
    hideBranding: boolean;
    defaultScheduleId: number | null;
    timeFormat: number | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    travelSchedules: {
        id: number;
        userId: number;
        timeZone: string;
        startDate: Date;
        endDate: Date | null;
        prevTimeZone: string | null;
    }[];
    allSelectedCalendars: {
        error: string | null;
        id: string;
        userId: number;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    userLevelSelectedCalendars: {
        error: string | null;
        id: string;
        userId: number;
        credentialId: number | null;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        integration: string;
        externalId: string;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
}[]>;
export type LoadedUsers = Awaited<ReturnType<typeof loadUsers>>;
export type OrganizerUser = LoadedUsers[number] & {
    isFixed?: boolean;
    metadata?: Prisma.JsonValue;
};
export {};
//# sourceMappingURL=loadUsers.d.ts.map