1 | import * as MappingEntry from "./mapping-entry";
|
2 | import * as Filesystem from "./filesystem";
|
3 |
|
4 |
|
5 |
|
6 | export interface MatchPathAsync {
|
7 | (requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: ReadonlyArray<string> | undefined, callback: MatchPathAsyncCallback): void;
|
8 | }
|
9 | export interface MatchPathAsyncCallback {
|
10 | (err?: Error, path?: string): void;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 | export declare function createMatchPathAsync(absoluteBaseUrl: string, paths: {
|
16 | [key: string]: Array<string>;
|
17 | }, mainFields?: (string | string[])[], addMatchAll?: boolean): MatchPathAsync;
|
18 |
|
19 |
|
20 |
|
21 | export declare function matchFromAbsolutePathsAsync(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: readonly string[] | undefined, callback: MatchPathAsyncCallback, mainFields?: (string | string[])[]): void;
|