import type { Media } from "@osdk/api";
export interface EmailAddress {
	name: string;
	address: string;
}
export interface ParsedEmail {
	subject: string | undefined;
	from: EmailAddress | undefined;
	to: readonly EmailAddress[];
	cc: readonly EmailAddress[];
	date: string | undefined;
	html: string | undefined;
	text: string | undefined;
}
export interface BaseEmailViewerProps {
	/** Parsed email data */
	email: ParsedEmail;
	/** Additional CSS class name for the root element
	* @default undefined */
	className?: string;
}
export interface EmailViewerMediaProps extends Omit<BaseEmailViewerProps, "email"> {
	/** The Media object to fetch EML contents from */
	media: Media;
}
