1 | import type { ResolveOptions } from 'enhanced-resolve';
|
2 | export declare const defaultConditionNames: string[];
|
3 | export declare const defaultExtensions: string[];
|
4 | export declare const defaultExtensionAlias: {
|
5 | '.js': string[];
|
6 | '.jsx': string[];
|
7 | '.cjs': string[];
|
8 | '.mjs': string[];
|
9 | };
|
10 | export declare const defaultMainFields: string[];
|
11 | export declare const interfaceVersion = 2;
|
12 | export interface TsResolverOptions extends Omit<ResolveOptions, 'fileSystem' | 'useSyncFileSystemCalls'> {
|
13 | alwaysTryTypes?: boolean;
|
14 | project?: string[] | string;
|
15 | extensions?: string[];
|
16 | }
|
17 | export declare function resolve(source: string, file: string, options?: TsResolverOptions | null): {
|
18 | found: boolean;
|
19 | path?: string | null;
|
20 | };
|