import { Types } from '@graphql-codegen/plugin-helpers'; import { Command } from 'commander'; import { GraphQLConfig } from 'graphql-config'; export declare type YamlCliFlags = { config: string; watch: boolean; require: string[]; overwrite: boolean; project: string; }; export declare function loadContext(configFilePath?: string): Promise | never; export declare function setCommandOptions(commandInstance: Command): import("commander").Command; export declare function parseArgv(argv?: string[]): Command & YamlCliFlags; export declare function createContext(cliFlags?: Command & YamlCliFlags): Promise; export declare function updateContextWithCliFlags(context: CodegenContext, cliFlags: Command & YamlCliFlags): void; export declare class CodegenContext { private _config; private _graphqlConfig?; private config; private _project?; cwd: string; filepath: string; constructor({ config, graphqlConfig, filepath }: { config?: Types.Config; graphqlConfig?: GraphQLConfig; filepath?: string; }); useProject(name?: string): void; getConfig(): Types.Config; updateConfig(config: Partial): void; loadSchema(pointer: Types.Schema): Promise; loadDocuments(pointer: Types.OperationDocument[]): Promise; } export declare function ensureContext(input: CodegenContext | Types.Config): CodegenContext;