import { Prisma } from '../../../../kysely/types.ts';
import { 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: {
        availability: {
            days: number[];
            date: Date | null;
            startTime: Date;
            endTime: Date;
        }[];
        id: number;
        timeZone: string | null;
    }[];
    username: string | null;
    email: string;
    name: string | null;
    availability: {
        days: number[];
        date: Date | null;
        userId: number | null;
        id: number;
        eventTypeId: number | null;
        scheduleId: number | null;
        startTime: Date;
        endTime: Date;
    }[];
    theme: string | null;
    locked: boolean;
    locale: string | null;
    metadata: import('@prisma/client/runtime/client').JsonValue;
    id: number;
    credentials: {
        type: string;
        user: {
            email: string;
        } | null;
        userId: number | null;
        key: import('@prisma/client/runtime/client').JsonValue;
        id: number;
        teamId: number | null;
        encryptedKey: string | null;
        appId: string | null;
        invalid: boolean | null;
        delegationCredentialId: string | null;
    }[];
    timeZone: string;
    uuid: string;
    bufferTime: number;
    hideBranding: boolean;
    defaultScheduleId: number | null;
    timeFormat: number | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    isPlatformManaged: boolean;
    destinationCalendar: {
        userId: number | null;
        id: number;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        domainWideDelegationCredentialId: string | null;
        customCalendarReminder: number | null;
    } | null;
    selectedCalendars: {
        error: string | null;
        userId: number;
        id: string;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        channelId: string | null;
        channelKind: string | null;
        channelResourceId: string | null;
        channelResourceUri: string | null;
        channelExpiration: Date | null;
        syncSubscribedAt: Date | null;
        syncSubscribedErrorAt: Date | null;
        syncSubscribedErrorCount: number;
        syncToken: string | null;
        syncedAt: Date | null;
        syncErrorAt: Date | null;
        syncErrorCount: number | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    travelSchedules: {
        userId: number;
        id: number;
        timeZone: string;
        startDate: Date;
        endDate: Date | null;
        prevTimeZone: string | null;
    }[];
}, "selectedCalendars"> & {
    allSelectedCalendars: {
        error: string | null;
        userId: number;
        id: string;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        channelId: string | null;
        channelKind: string | null;
        channelResourceId: string | null;
        channelResourceUri: string | null;
        channelExpiration: Date | null;
        syncSubscribedAt: Date | null;
        syncSubscribedErrorAt: Date | null;
        syncSubscribedErrorCount: number;
        syncToken: string | null;
        syncedAt: Date | null;
        syncErrorAt: Date | null;
        syncErrorCount: number | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    userLevelSelectedCalendars: {
        error: string | null;
        userId: number;
        id: string;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        channelId: string | null;
        channelKind: string | null;
        channelResourceId: string | null;
        channelResourceUri: string | null;
        channelExpiration: Date | null;
        syncSubscribedAt: Date | null;
        syncSubscribedErrorAt: Date | null;
        syncSubscribedErrorCount: number;
        syncToken: string | null;
        syncedAt: Date | null;
        syncErrorAt: Date | null;
        syncErrorCount: number | 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;
            theme: string | null;
            slug: string | null;
            metadata: import('@prisma/client/runtime/client').JsonValue;
            id: number;
            hideBranding: boolean;
            brandColor: string | null;
            darkBrandColor: string | null;
            logoUrl: string | null;
            bannerUrl: string | null;
            isPlatform: boolean;
            organizationSettings: {
                allowSEOIndexing: boolean;
                orgProfileRedirectsToVerifiedDomain: boolean;
                disableAutofillOnBookingPage: boolean;
            } | null;
        } & Omit<Pick<{
            name: string;
            bio: string | null;
            theme: string | null;
            slug: string | null;
            metadata: import('@prisma/client/runtime/client').JsonValue | null;
            id: number;
            createdAt: Date;
            parentId: number | null;
            timeZone: string;
            bookingLimits: import('@prisma/client/runtime/client').JsonValue | null;
            weekStart: string;
            hideBranding: boolean;
            timeFormat: number | null;
            brandColor: string | null;
            darkBrandColor: string | null;
            smsLockState: import('../../../../kysely/types.ts').SMSLockState;
            smsLockReviewedByAdmin: boolean;
            autoOptInFeatures: boolean;
            logoUrl: string | null;
            calVideoLogo: string | null;
            appLogo: string | null;
            appIconLogo: string | null;
            hideTeamProfileLink: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            rrResetInterval: import('../../../../kysely/types.ts').RRResetInterval | null;
            rrTimestampBasis: import('../../../../kysely/types.ts').RRTimestampBasis;
            bannerUrl: string | null;
            isOrganization: boolean;
            pendingPayment: boolean;
            isPlatform: boolean;
            createdByOAuthClientId: string | null;
            includeManagedEventsInLimits: boolean;
        }, "name" | "theme" | "slug" | "metadata" | "id" | "hideBranding" | "brandColor" | "darkBrandColor" | "logoUrl" | "bannerUrl" | "isPlatform">, "metadata"> & {
            requestedSlug: string | null;
            metadata: {
                requestedSlug: string | null;
                subscriptionId?: string | null | undefined;
                billingPeriod?: import('../../../../prisma/zod-utils').BillingPeriod | undefined;
                subscriptionItemId?: string | null | undefined;
                defaultConferencingApp?: {
                    appSlug?: string | undefined;
                    appLink?: string | undefined;
                } | undefined;
                migratedToOrgFrom?: {
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    teamSlug?: string | null | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                paymentId?: string | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
            };
        }, "metadata"> & {
            requestedSlug: string | null;
            metadata: {
                requestedSlug: string | null;
                subscriptionId?: string | null | undefined;
                billingPeriod?: import('../../../../prisma/zod-utils').BillingPeriod | undefined;
                subscriptionItemId?: string | null | undefined;
                defaultConferencingApp?: {
                    appSlug?: string | undefined;
                    appLink?: string | undefined;
                } | undefined;
                migratedToOrgFrom?: {
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    teamSlug?: string | null | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                paymentId?: string | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
            };
        };
        user: {
            username: string | null;
            email: string;
            name: string | null;
            locale: string | null;
            id: number;
            avatarUrl: string | null;
            bufferTime: number;
            defaultScheduleId: number | null;
            isPlatformManaged: boolean;
        };
        username: string;
        uid: string;
        organizationId: number;
        userId: number;
        id: number;
        createdAt: Date & string;
        updatedAt: Date & string;
        upId: string;
    } | null;
    schedules: {
        availability: {
            days: number[];
            date: Date | null;
            startTime: Date;
            endTime: Date;
        }[];
        id: number;
        timeZone: string | null;
    }[];
    username: string | null;
    email: string;
    name: string | null;
    availability: {
        days: number[];
        date: Date | null;
        userId: number | null;
        id: number;
        eventTypeId: number | null;
        scheduleId: number | null;
        startTime: Date;
        endTime: Date;
    }[];
    theme: string | null;
    locked: boolean;
    locale: string | null;
    metadata: import('@prisma/client/runtime/client').JsonValue;
    id: number;
    credentials: {
        type: string;
        user: {
            email: string;
        } | null;
        userId: number | null;
        key: import('@prisma/client/runtime/client').JsonValue;
        id: number;
        teamId: number | null;
        encryptedKey: string | null;
        appId: string | null;
        invalid: boolean | null;
        delegationCredentialId: string | null;
    }[];
    timeZone: string;
    uuid: string;
    bufferTime: number;
    hideBranding: boolean;
    defaultScheduleId: number | null;
    timeFormat: number | null;
    brandColor: string | null;
    darkBrandColor: string | null;
    allowDynamicBooking: boolean | null;
    isPlatformManaged: boolean;
    destinationCalendar: {
        userId: number | null;
        id: number;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        primaryEmail: string | null;
        domainWideDelegationCredentialId: string | null;
        customCalendarReminder: number | null;
    } | null;
    travelSchedules: {
        userId: number;
        id: number;
        timeZone: string;
        startDate: Date;
        endDate: Date | null;
        prevTimeZone: string | null;
    }[];
    allSelectedCalendars: {
        error: string | null;
        userId: number;
        id: string;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        channelId: string | null;
        channelKind: string | null;
        channelResourceId: string | null;
        channelResourceUri: string | null;
        channelExpiration: Date | null;
        syncSubscribedAt: Date | null;
        syncSubscribedErrorAt: Date | null;
        syncSubscribedErrorCount: number;
        syncToken: string | null;
        syncedAt: Date | null;
        syncErrorAt: Date | null;
        syncErrorCount: number | null;
        lastErrorAt: Date | null;
        watchAttempts: number;
        unwatchAttempts: number;
        maxAttempts: number;
    }[];
    userLevelSelectedCalendars: {
        error: string | null;
        userId: number;
        id: string;
        eventTypeId: number | null;
        createdAt: Date | null;
        updatedAt: Date | null;
        credentialId: number | null;
        delegationCredentialId: string | null;
        integration: string;
        externalId: string;
        domainWideDelegationCredentialId: string | null;
        googleChannelId: string | null;
        googleChannelKind: string | null;
        googleChannelResourceId: string | null;
        googleChannelResourceUri: string | null;
        googleChannelExpiration: string | null;
        channelId: string | null;
        channelKind: string | null;
        channelResourceId: string | null;
        channelResourceUri: string | null;
        channelExpiration: Date | null;
        syncSubscribedAt: Date | null;
        syncSubscribedErrorAt: Date | null;
        syncSubscribedErrorCount: number;
        syncToken: string | null;
        syncedAt: Date | null;
        syncErrorAt: Date | null;
        syncErrorCount: number | 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