File size: 787 Bytes
e4a10af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// <reference types="node" />
import { Localization, Options } from ".";
import Context from "./Context";
import Language from "./Language";
export declare type BodySpec = BodySpec.BodyInline | BodySpec.BodyInFile;
export declare namespace BodySpec {
    interface BaseBodySpec extends Localization {
        type?: "rtf" | "plain";
    }
    interface BodyInline extends BaseBodySpec {
        charset?: never;
        file?: never;
        text: string;
    }
    interface BodyInFile extends BaseBodySpec {
        charset?: "UTF-8" | string;
        file: string;
        text?: never;
    }
    function prepare(spec: BodySpec, lang: Language, contextOrOptions?: Context | Options): Promise<{
        data: Buffer;
        type: "RTF " | "TEXT";
    }>;
}
export default BodySpec;