import type { RequestEvent } from '@sveltejs/kit';
/**
 * Import all Svelte email components file paths.
 * Create a list containing all Svelte email component file names.
 * Return this list to the client.
 */
export type PreviewData = {
    files: string[] | null;
    path: string | null;
};
type Props = {
    path?: string;
    root?: string;
};
export declare const emailList: ({ path, root }?: Props) => PreviewData;
/**
 *
 * Imports the requested svelte template.
 * Renders the template into html.
 */
export declare const createEmail: {
    'create-email': (event: RequestEvent) => Promise<{
        html: string;
        text: string;
    }>;
};
export declare const SendEmailFunction: ({ from, to, subject, html }: {
    from: string;
    to: string;
    subject: string;
    html: string;
}, resendApiKey?: string) => Promise<{
    success: boolean;
    error?: any;
}>;
/**
 * Sends the email using the submitted form data.
 */
export declare const sendEmail: ({ customSendEmailFunction, resendApiKey }: {
    customSendEmailFunction?: (({ from, to, subject, html }: {
        from: string;
        to: string;
        subject: string;
        html: string;
    }, resendApiKey?: string) => Promise<{
        success: boolean;
        error?: any;
    }>) | undefined;
    resendApiKey?: string | undefined;
}) => {
    'send-email': (event: RequestEvent) => Promise<{
        success: boolean;
        error: any;
    }>;
};
export {};
