import React from 'react';
import { ServiceReturnType } from '@parlor/contexts';
type EmailListItem = ServiceReturnType<'email', 'useList'>['data']['list']['edges'][number]['node'];
type ListItem = ServiceReturnType<'queuedAutomation', 'useList'>['data']['list']['edges'][number]['node'];
type MyTeamListItem = ServiceReturnType<'queuedAutomation', 'useMyTeamEmailQueue'>['data']['list'][number];
type IQueuedAutomation = ListItem & {
    admin?: MyTeamListItem['admin'];
};
type IEmail = EmailListItem;
export type EmailListItemProps<T extends IQueuedAutomation = IQueuedAutomation, E extends IEmail = IEmail> = {
    data: T;
    email?: E;
    isAdminVisible?: boolean;
    onCancel?: (item: T) => void;
    onClick?: (item: T) => void;
    onClickEmail?: (item: E) => void;
    onReviewAndSend?: (item: T) => void;
};
export declare const DESCRIPTION_LINES_COUNT = 2;
declare function EmailListItemInner<T extends IQueuedAutomation = IQueuedAutomation>({ data: queuedAutomation, email: _email, isAdminVisible, onClickEmail, onClick, onReviewAndSend, onCancel, }: EmailListItemProps<T>): JSX.Element;
export declare const EmailListItem: React.MemoExoticComponent<typeof EmailListItemInner>;
export {};
