1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import type { Config } from '@jest/types';
|
8 | declare type ResolveOptions = {
|
9 | rootDir: Config.Path;
|
10 | key: string;
|
11 | filePath: Config.Path;
|
12 | optional?: boolean;
|
13 | };
|
14 | export declare const BULLET: string;
|
15 | export declare const DOCUMENTATION_NOTE: string;
|
16 | export declare const resolve: (resolver: string | null | undefined, { key, filePath, rootDir, optional }: ResolveOptions) => string;
|
17 | export declare const escapeGlobCharacters: (path: Config.Path) => Config.Glob;
|
18 | export declare const replaceRootDirInPath: (rootDir: Config.Path, filePath: Config.Path) => string;
|
19 | declare type OrArray<T> = T | Array<T>;
|
20 | declare type ReplaceRootDirConfigObj = Record<string, Config.Path>;
|
21 | declare type ReplaceRootDirConfigValues = OrArray<ReplaceRootDirConfigObj> | OrArray<RegExp> | OrArray<Config.Path>;
|
22 | export declare const _replaceRootDirTags: <T extends ReplaceRootDirConfigValues>(rootDir: Config.Path, config: T) => T;
|
23 | declare type JSONString = string & {
|
24 | readonly $$type: never;
|
25 | };
|
26 | export declare const isJSONString: (text?: string | JSONString | undefined) => text is JSONString;
|
27 | export {};
|