-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
36 lines (36 loc) · 1.05 KB
/
index.d.ts
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
27
28
29
30
31
32
33
34
35
36
import * as prettier from "prettier";
import VFile from "vfile";
export declare type Newline = "crlf" | "lf" | "auto";
export declare const eol: (newline: Newline) => string;
export declare const newlineRe: RegExp;
export interface MermaidConfig {
theme: "default" | "forest" | "dark" | "neutral";
backgroundColor: string;
}
export interface Config {
help: boolean;
indent: number;
indentInnerHtml: boolean;
lineLength: number;
lint: boolean;
mermaid: Partial<MermaidConfig>;
newline: Newline;
only: string;
outDir: string;
prettier: prettier.Options;
quiet: boolean;
recurse: boolean;
sourcemap: boolean;
mapRoot: string;
stripComment: boolean;
style: string;
theme: string;
title: string;
verbose: boolean;
watch: boolean;
wrapAttributes: "auto" | "force";
}
declare function handleFile(file: VFile, initialConfig: Config): Promise<void>;
declare function modernlit(): Promise<void>;
declare function mlsourcemap(): Promise<void>;
export { modernlit, handleFile, mlsourcemap };