import { FieldDefinitionNode } from 'graphql'; export declare function createDir(path: string, del?: boolean, recursive?: boolean): void; export declare function createFile(path: string, content?: string, replace?: boolean): void; export declare function copyFiles(from: string, to: string): Promise; export declare function getTemplatePath(template: string): string; /** * Load package.json of the current hydra-cli version */ export declare function resolveHydraCliPkgJson(): Record; /** * Copies the template to the current directory of the process under the * * @param template Template file int templates/ * @param fileName Filename of the file to be created */ export declare function copyTemplateToCWD(templateName: string, fileName: string): Promise; /** * resolve a package version by resolving package.json * * @param pkgName dependency to loockup */ export declare function resolvePackageVersion(pkgName: string): string; /** * Tries to resolve a filepath from node_modules and reads the file as a string * * @param path a path like 'someModule/ */ export declare function readModuleFile(path: string): string; /** * Parse stderr for warthog command `warthog codegen` (child process). * @param stderr string */ export declare function parseWarthogCodegenStderr(stderr: string): void; export declare function getWarthogDependency(): string; export declare const verifySchemaExt: (file: string) => boolean; export declare const isFile: (file: string) => boolean; /** * Get available directive names from a FieldNode * @param fieldNode FieldNode * @returns string[] */ export declare function getDirectiveNames(fieldNode: FieldDefinitionNode): string[];