import { ResolvedConfig, UserConfig } from "powerlines"; import { OpenAPISchema, OpenAPISchema as OpenAPISchema$1 } from "@power-plant/openapi-schema"; import { Options, Options as PowerPlantOpenAPITypeScriptOptions } from "@power-plant/openapi-typescript"; import { PowerPlantPluginContext, PowerPlantPluginResolvedConfig } from "@powerlines/plugin-power-plant/types/plugin"; //#region src/types/plugin.d.ts /** * Options for the OpenAPI Powerlines plugin. */ type OpenAPIPluginOptions = Partial> & { /** * The OpenAPI schema to generate from. * * @remarks * This can be an {@link OpenAPISchema} object, a local file path, a remote URL * string, or a {@link URL} object. * * @defaultValue "\{root\}/schema.yaml" */ schema?: string | URL | OpenAPISchema$1; /** * The path to the output file generated by the plugin. * * @remarks * If using the default value, the file can be imported from "powerlines:api". This field allows the use of the "\{builtinsPath\}" token to refer to the built-in Powerlines plugins directory - the value will be replaced with the correct file path by the plugin. * * @defaultValue "\{builtinsPath\}/api.ts" */ outputPath?: string; }; type OpenAPIPluginUserConfig = UserConfig & { openapi?: OpenAPIPluginOptions; }; type OpenAPIPluginResolvedConfig = ResolvedConfig & PowerPlantPluginResolvedConfig & { openapi: Omit & { schema: string | URL | OpenAPISchema$1; outputPath: string; document: OpenAPISchema$1; }; }; type OpenAPIPluginContext = PowerPlantPluginContext; //#endregion export { OpenAPIPluginContext, OpenAPIPluginOptions, OpenAPIPluginResolvedConfig, OpenAPIPluginUserConfig, type OpenAPISchema, type PowerPlantOpenAPITypeScriptOptions }; //# sourceMappingURL=plugin.d.cts.map