1 | import type { ParserPreset, UserConfig } from '@commitlint/types';
|
2 |
|
3 |
|
4 |
|
5 | export declare const resolveFrom: (lookup: string, parent?: string) => string;
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare const loadParserPreset: (resolvedParserPreset: string) => Promise<Pick<ParserPreset, 'path' | 'parserOpts'>>;
|
12 | export interface ResolveExtendsContext {
|
13 | cwd?: string;
|
14 | parserPreset?: string | ParserPreset;
|
15 | prefix?: string;
|
16 | resolve?(id: string, ctx?: {
|
17 | prefix?: string;
|
18 | cwd?: string;
|
19 | }): string;
|
20 | resolveGlobal?: (id: string) => string;
|
21 | dynamicImport?<T>(id: string): T | Promise<T>;
|
22 | }
|
23 | export default function resolveExtends(config?: UserConfig, context?: ResolveExtendsContext): Promise<UserConfig>;
|
24 | export declare function resolveFromSilent(specifier: string, parent: string): string | void;
|
25 |
|
26 |
|
27 |
|
28 | export declare function resolveGlobalSilent(specifier: string): string | void;
|
29 |
|
\ | No newline at end of file |