/**
 * File was automatically generated using json-schema-to-typescript.
 * DO NOT MODIFY IT BY HAND.
 * Instead, modify the source file https://formats.openag.io/trellis/service/abalonemail/email.schema.json of @oada/formats
 * and run `$ yarn build` to regenerate this file.
 */
/**
 * $id of the source schema
 * @see {@link https://formats.openag.io/trellis/service/abalonemail/email.schema.json}
 */
export declare const $id = "https://formats.openag.io/trellis/service/abalonemail/email.schema.json";
/**
 * Returns true if val is a @type Email, false otherwise
 */
export declare function is(val: any): val is Email;
/**
 * Asserts that val is a @type Email
 */
export declare function assert(val: any): asserts val is Email;
export default Email;
/**
 * Extension @oada/jobs job queue format for Abalonemail
 */
export declare type Email = {
    /**
     * Service name
     */
    service?: "abalonemail";
    /**
     * Email job type
     */
    type?: "email";
    /**
     * Job spceific configuration object
     */
    config: {
        /**
         * If separate emails to each `to` (true) or if one email to all of `to` (false)
         */
        multiple?: boolean;
        /**
         * Object for email and associated person's name
         *
         * This interface was referenced by `undefined`'s JSON-Schema
         * via the `definition` "email".
         */
        from: string | {
            email: string;
            name?: string;
            [k: string]: unknown;
        };
        to: (string | {
            email: string;
            name?: string;
            [k: string]: unknown;
        }) | (string | {
            email: string;
            name?: string;
            [k: string]: unknown;
        })[];
        /**
         * Object for email and associated person's name
         *
         * This interface was referenced by `undefined`'s JSON-Schema
         * via the `definition` "email".
         */
        replyTo?: string | {
            email: string;
            name?: string;
            [k: string]: unknown;
        };
        subject?: string;
        text?: string;
        html?: string;
        /**
         * Data to use when filling out email template
         */
        templateData?: {
            [k: string]: unknown;
        };
        attachments?: {
            content: string | ({
                /**
                 * _rev is the revision for a resource in the OADA API.
                 */
                _rev: number;
                /**
                 * _id identifies a resource in the OADA API.
                 */
                _id?: string;
                /**
                 * _type identifies the content-type of a resource in the OADA API and             is required for all OADA-defined formats.  It usually looks like            application/vnd.oada.something.1+json.
                 */
                _type?: string;
            } | {
                /**
                 * _id identifies a resource in the OADA API.
                 */
                _id: string;
                /**
                 * _type identifies the content-type of a resource in the OADA API and             is required for all OADA-defined formats.  It usually looks like            application/vnd.oada.something.1+json.
                 */
                _type?: string;
            });
            filename: string;
            type?: string;
            disposition?: "inline" | "attachment";
            content_id?: string;
            [k: string]: unknown;
        }[];
        [k: string]: unknown;
    };
    /**
     * Final result of job
     */
    result?: {
        [k: string]: unknown;
    };
    [k: string]: unknown;
};
//# sourceMappingURL=email.d.ts.map