import type { EventType } from './getRoutedUsers';
import type { SelectedCalendar } from '../../prisma/client';
import type { SchedulingType } from '../../prisma/enums';
import type { CredentialForCalendarService, CredentialPayload } from "@calcom/types/Credential";
import type { RoutingFormResponse } from "../server/getLuckyUser";
type Host<T> = {
    isFixed: boolean;
    createdAt: Date;
    priority?: number | null;
    weight?: number | null;
} & {
    user: T;
};
export declare const findQualifiedHostsWithDelegationCredentials: <T extends {
    email: string;
    id: number;
    credentials: CredentialPayload[];
    userLevelSelectedCalendars: SelectedCalendar[];
} & Record<string, unknown>>({ eventType, rescheduleUid, routedTeamMemberIds, contactOwnerEmail, routingFormResponse, }: {
    eventType: {
        id: number;
        maxLeadThreshold: number | null;
        hosts?: Host<T>[];
        users: T[];
        schedulingType: SchedulingType | null;
        isRRWeightsEnabled: boolean;
        rescheduleWithSameRoundRobinHost: boolean;
    } & EventType;
    rescheduleUid: string | null;
    routedTeamMemberIds: number[];
    contactOwnerEmail: string | null;
    routingFormResponse: RoutingFormResponse | null;
}) => Promise<{
    qualifiedRRHosts: {
        isFixed: boolean;
        createdAt: Date | null;
        priority?: number | null;
        weight?: number | null;
        user: Omit<T, "credentials"> & {
            credentials: CredentialForCalendarService[];
        };
    }[];
    fixedHosts: {
        isFixed: boolean;
        createdAt: Date | null;
        priority?: number | null;
        weight?: number | null;
        user: Omit<T, "credentials"> & {
            credentials: CredentialForCalendarService[];
        };
    }[];
    allFallbackRRHosts?: {
        isFixed: boolean;
        createdAt: Date | null;
        priority?: number | null;
        weight?: number | null;
        user: Omit<T, "credentials"> & {
            credentials: CredentialForCalendarService[];
        };
    }[];
}>;
export {};
//# sourceMappingURL=findQualifiedHostsWithDelegationCredentials.d.ts.map