import type { Options, ReturnPayload } from './types.js'; /** * Convert OpenAPI definitions to TypeScript JSON Schema modules. * * @remarks * Resolves and dereferences `$ref`s in an OpenAPI document, converts OpenAPI * schema objects to JSON Schema, and writes `.ts` modules exporting `as const` JSON schemas. * * @param options - See {@link Options} for available configuration. * @returns A {@link ReturnPayload} with the output directory and per-schema metadata. * * @example * ```ts * import { openapiToTsJsonSchema } from "openapi-ts-json-schema"; * * await openapiToTsJsonSchema({ * openApiDocument: "path/to/spec.yaml", * targets: { * collections: ["paths"], * }, * }); * ``` */ export declare function openapiToTsJsonSchema(options: Options): Promise;