UNPKG

827 BTypeScriptView Raw
1import { Plugin } from 'postcss';
2import { DtsContent, CamelCaseOption } from './dts-content';
3interface DtsCreatorOptions {
4 rootDir?: string;
5 searchDir?: string;
6 outDir?: string;
7 camelCase?: CamelCaseOption;
8 namedExports?: boolean;
9 allowArbitraryExtensions?: boolean;
10 dropExtension?: boolean;
11 EOL?: string;
12 loaderPlugins?: Plugin[];
13}
14export declare class DtsCreator {
15 private rootDir;
16 private searchDir;
17 private outDir;
18 private loader;
19 private inputDirectory;
20 private camelCase;
21 private namedExports;
22 private allowArbitraryExtensions;
23 private dropExtension;
24 private EOL;
25 constructor(options?: DtsCreatorOptions);
26 create(filePath: string, initialContents?: string, clearCache?: boolean, isDelete?: boolean): Promise<DtsContent>;
27}
28export {};