1 | export interface ConfigSearchResult {
|
2 | config: any;
|
3 | filepath: string;
|
4 | isEmpty?: boolean;
|
5 | }
|
6 | export declare function isLegacyConfig(filepath: string): boolean;
|
7 | export declare function createCosmiConfig(moduleName: string, { legacy, }: {
|
8 | legacy: boolean;
|
9 | }): {
|
10 | readonly search: (searchFrom?: string) => Promise<{
|
11 | config: any;
|
12 | filepath: string;
|
13 | isEmpty?: boolean;
|
14 | }>;
|
15 | readonly load: (filepath: string) => Promise<{
|
16 | config: any;
|
17 | filepath: string;
|
18 | isEmpty?: boolean;
|
19 | }>;
|
20 | readonly clearLoadCache: () => void;
|
21 | readonly clearSearchCache: () => void;
|
22 | readonly clearCaches: () => void;
|
23 | };
|
24 | export declare function createCosmiConfigSync(moduleName: string, { legacy }: {
|
25 | legacy: boolean;
|
26 | }): {
|
27 | readonly search: (searchFrom?: string) => {
|
28 | config: any;
|
29 | filepath: string;
|
30 | isEmpty?: boolean;
|
31 | };
|
32 | readonly load: (filepath: string) => {
|
33 | config: any;
|
34 | filepath: string;
|
35 | isEmpty?: boolean;
|
36 | };
|
37 | readonly clearLoadCache: () => void;
|
38 | readonly clearSearchCache: () => void;
|
39 | readonly clearCaches: () => void;
|
40 | };
|
41 |
|
\ | No newline at end of file |