1 | import type { GraphQLConfigResult } from './types.js';
|
2 | import { GraphQLProjectConfig } from './project-config.js';
|
3 | import { GraphQLExtensionDeclaration, GraphQLExtensionsRegistry } from './extension.js';
|
4 | interface LoadConfigOptions {
|
5 | filepath?: string;
|
6 | rootDir?: string;
|
7 | extensions?: GraphQLExtensionDeclaration[];
|
8 | throwOnMissing?: boolean;
|
9 | throwOnEmpty?: boolean;
|
10 | configName?: string;
|
11 | legacy?: boolean;
|
12 | }
|
13 | export declare function loadConfig(options: LoadConfigOptions): Promise<GraphQLConfig | undefined>;
|
14 | export declare function loadConfigSync(options: LoadConfigOptions): GraphQLConfig;
|
15 | export declare class GraphQLConfig {
|
16 | private readonly _rawConfig;
|
17 | readonly filepath: string;
|
18 | readonly dirpath: string;
|
19 | readonly projects: Record<string, GraphQLProjectConfig>;
|
20 | readonly extensions: GraphQLExtensionsRegistry;
|
21 | constructor(raw: GraphQLConfigResult, extensions: GraphQLExtensionDeclaration[]);
|
22 | getProject(name?: string): GraphQLProjectConfig | never;
|
23 | getProjectForFile(filepath: string): GraphQLProjectConfig | never;
|
24 | getDefault(): GraphQLProjectConfig | never;
|
25 | isLegacy(): boolean;
|
26 | }
|
27 | export {};
|
28 |
|
\ | No newline at end of file |