1 | export type CamelCaseOption = boolean | 'dashes' | undefined;
|
2 | interface DtsContentOptions {
|
3 | dropExtension: boolean;
|
4 | rootDir: string;
|
5 | searchDir: string;
|
6 | outDir: string;
|
7 | rInputPath: string;
|
8 | rawTokenList: string[];
|
9 | namedExports: boolean;
|
10 | allowArbitraryExtensions: boolean;
|
11 | camelCase: CamelCaseOption;
|
12 | EOL: string;
|
13 | }
|
14 | export declare class DtsContent {
|
15 | private dropExtension;
|
16 | private rootDir;
|
17 | private searchDir;
|
18 | private outDir;
|
19 | private rInputPath;
|
20 | private rawTokenList;
|
21 | private namedExports;
|
22 | private allowArbitraryExtensions;
|
23 | private camelCase;
|
24 | private resultList;
|
25 | private EOL;
|
26 | constructor(options: DtsContentOptions);
|
27 | get contents(): string[];
|
28 | get formatted(): string;
|
29 | get tokens(): string[];
|
30 | get outputFilePath(): string;
|
31 | get relativeOutputFilePath(): string;
|
32 | get inputFilePath(): string;
|
33 | get relativeInputFilePath(): string;
|
34 | checkFile(postprocessor?: (formatted: string) => string): Promise<boolean>;
|
35 | writeFile(postprocessor?: (formatted: string) => string | PromiseLike<string>): Promise<void>;
|
36 | deleteFile(): Promise<void>;
|
37 | private createResultList;
|
38 | private getConvertKeyMethod;
|
39 | /**
|
40 | * Replaces only the dashes and leaves the rest as-is.
|
41 | *
|
42 | * Mirrors the behaviour of the css-loader:
|
43 | * https://github.com/webpack-contrib/css-loader/blob/1fee60147b9dba9480c9385e0f4e581928ab9af9/lib/compile-exports.js#L3-L7
|
44 | */
|
45 | private dashesCamelCase;
|
46 | private get outputFileName();
|
47 | }
|
48 | export {};
|