import { Indent } from './Indent.js'; import { AnyOpenApi } from './openApi/index.js'; export type Options = { input: string | AnyOpenApi; output?: string; factories: string; useUnionTypes?: boolean; exportServices?: boolean; exportSchemas?: boolean; indent?: Indent; postfixModels?: string; allowImportingTsExtensions?: boolean; write?: boolean; allowedQueryHooksMethods?: string; allowedMutationHooksMethods?: string; allowedServerMethods?: string; }; /** * Generate the OpenAPI client. This method will read the OpenAPI specification and based on the * given language it will generate the client, including the typed models, validation schemas, * service layer, etc. * @param input The relative location of the OpenAPI spec * @param output The relative location of the output directory * @param factories The relative location of the the fifle with factories (createServerResolver, createClientResolver, createHook) * @param useUnionTypes Use union types instead of enums * @param exportServices Generate services * @param exportSchemas Generate schemas * @param indent Indentation options (4, 2 or tab) * @param postfixModels Model name postfix * @param allowImportingTsExtensions (Generate .ts extentions on imports enstead .js) * @param write Write the files to disk (true or false) * @param allowedQueryHooksMethods Http methods for which hooks will be generated, default GET * @param allowedMutationHooksMethods Http methods for which mutations hooks will be generated, default POST * @param allowedServerMethods Http methods for which server resolvers will be generated, default GET */ export declare const generate: ({ input, output, factories: factoriesRaw, useUnionTypes, exportServices, exportSchemas, indent, postfixModels, allowImportingTsExtensions, write, allowedQueryHooksMethods, allowedMutationHooksMethods, allowedServerMethods, }: Options) => Promise; declare const _default: { Indent: typeof Indent; generate: ({ input, output, factories: factoriesRaw, useUnionTypes, exportServices, exportSchemas, indent, postfixModels, allowImportingTsExtensions, write, allowedQueryHooksMethods, allowedMutationHooksMethods, allowedServerMethods, }: Options) => Promise; createRequestParams: & ({} | { formData: Record; requestBody?: undefined; } | { requestBody: BodyInit; formData?: undefined; })>(config: import("./index.js").EndpointConfig, input: Input | null, options?: import("./index.js").EndpointOptions | undefined) => [RequestInfo, RequestInit]; }; export default _default;