import type { AttributesQueryValue } from '../raqb/types';
import { SchedulingType } from '../../prisma/enums';
export declare const getRoutedUsersWithContactOwnerAndFixedUsers: <T extends {
    id: number;
    isFixed?: boolean;
    email: string;
}>({ routedTeamMemberIds, users, contactOwnerEmail, }: {
    routedTeamMemberIds: number[] | null;
    users: T[];
    contactOwnerEmail: string | null;
}) => T[];
type BaseUser = {
    id: number;
    email: string;
};
type BaseHost<User extends BaseUser> = {
    isFixed: boolean;
    createdAt: Date;
    priority?: number | null;
    weight?: number | null;
    weightAdjustment?: number | null;
    user: User;
};
export type EventType = {
    assignAllTeamMembers: boolean;
    assignRRMembersUsingSegment: boolean;
    rrSegmentQueryValue: AttributesQueryValue | null | undefined;
    team: {
        id: number;
        parentId: number | null;
    } | null;
};
export declare function getNormalizedHosts<User extends BaseUser, Host extends BaseHost<User>>({ eventType, }: {
    eventType: {
        schedulingType: SchedulingType | null;
        hosts?: Host[];
        users: User[];
    };
}): {
    hosts: {
        isFixed: boolean;
        user: User;
        priority: number | null | undefined;
        weight: number | null | undefined;
        createdAt: Date;
    }[];
    fallbackHosts: null;
} | {
    hosts: null;
    fallbackHosts: {
        isFixed: boolean;
        email: string;
        user: User;
        createdAt: null;
    }[];
};
export declare function findMatchingHostsWithEventSegment<User extends BaseUser>({ eventType, hosts, }: {
    eventType: EventType;
    hosts: {
        isFixed: boolean;
        user: User;
        priority?: number | null;
        weight?: number | null;
        createdAt: Date | null;
    }[];
}): Promise<{
    isFixed: boolean;
    user: User;
    priority?: number | null;
    weight?: number | null;
    createdAt: Date | null;
}[]>;
export {};
//# sourceMappingURL=getRoutedUsers.d.ts.map