type SingleConfig = { /** * Http address of JSON OpenAPI schema to your API * @required */ url?: string; /** * File path of JSON OpenAPI schema to your API */ filePath?: string; /** * Output directory for generated http service * * In order to help webpack automatically map aliases for generated file in Vue/React projects please use the following config: './src/service' * @default './service' */ outDir?: string; /** * Output filename (filename must be with .ts extension) * @default '__generated-api.ts' */ outFilename?: string; /** * List of paths to be excluded from generated api * @example ['/users'] // all paths starting with /users * @example [''] // all paths */ exclude?: string[]; /** * List of paths to be included in the generated api, takes priority over excluded paths * * Helpful when you need to exclude all but a few paths * @example ['/users'] // all paths starting with /users */ include?: string[]; /** * Removes all type exports that have no references in endpoints (can slow down api generation) * @default true */ optimizeTypes?: boolean; /** * List of types unaffected by optimizeTypes * * Helpful when you need an exported type that isn't referenced in any endpoint * @example ['WidgetResourcetypeEnum'] */ typeWhitelist?: string[]; }; export type Config = SingleConfig | SingleConfig[]; export declare const generateFromConfig: (config: Config) => Promise; export {};