/**
 * 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/config/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/config/email.schema.json}
 */
export declare const $id = "https://formats.openag.io/trellis/service/abalonemail/config/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;
/**
 * Object for email and associated person's name
 *
 * This interface was referenced by `Email`'s JSON-Schema
 * via the `definition` "email".
 */
export declare type Email1 = string | {
    email: string;
    name?: string;
    [k: string]: unknown;
};
/**
 * Abalonemail email config format for @oada/job job
 */
export interface Email {
    /**
     * 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
     */
    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
     */
    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;
        /**
         * @default "attachment"
         */
        disposition?: "inline" | "attachment";
        content_id?: string;
        [k: string]: unknown;
    }[];
    [k: string]: unknown;
}
//# sourceMappingURL=email.d.ts.map