import { type GeneratedFile } from '@amritk/validation'; import type { JSONSchema } from 'json-schema-typed/draft-2020-12'; import type { CliConfig } from './cli-config.js'; /** Where one schema's generated files reach their runtime helpers from. */ export type HelpersPlacement = { /** The published package, or helper sources emitted into the output tree. */ readonly mode: 'package' | 'embedded'; /** * Relative path from this schema's output subdirectory back to the shared * `_helpers/` at the output root. The recursive flows nest a schema's files a * directory or more down, so `./` is only right at the top. */ readonly importPrefix?: string; }; /** * Generates one schema's files, translating the CLI's flags into the single * options object `@amritk/validation` takes. * * All four generation flows come through here so none of them can quietly hold a * different opinion about what a flag means — which is exactly what happened * while the CLI drove the two generators directly and positionally: the AsyncAPI * flow passed `--unknown-keys` to the validators and forgot it for the parsers. */ export declare const generateFiles: (config: Partial, schema: JSONSchema, rootTypeName: string, helpers: HelpersPlacement) => Promise;