interface EmailAddress {
    name: string;
    address: string;
}
interface EmailAttachment {
    filename: string;
    content: string;
    contentType?: string;
}
interface SendMailPayload {
    businessId: string;
    from: EmailAddress;
    to: EmailAddress[];
    subject: string;
    html?: string;
    attachments?: EmailAttachment[];
    usage: 'Operational';
    forceSend?: boolean;
}
interface SendMailFormDataPayload {
    businessId: string;
    from: EmailAddress;
    to: EmailAddress[];
    subject: string;
    html?: string;
    attachments?: Blob[];
    usage: 'Operational';
    forceSend?: boolean;
}
interface SendMailResponse {
    creditUsed: {
        amount: number;
        currency: string;
        precision: number;
    };
    quantityUsed: number;
    balance: {
        amount: number;
        precision: number;
        currency: string;
    };
}
export interface GetEmailAddressData {
    emailAddress: string;
    name: string;
    verified: boolean;
    default: string[];
}
export declare const useEmailApi: () => {
    sendMail(payload: SendMailPayload): Promise<SendMailResponse>;
    sendMailFormData(payload: SendMailFormDataPayload): Promise<SendMailResponse>;
    getEmailList(businessId: string): Promise<GetEmailAddressData[]>;
};
export {};
