import type { LimitedUserConfig } from "./cli.mjs"; import { CodegenError } from "./errors.mjs"; export declare function findNearestTsConfigPath(startDir: string): string | undefined; export type GenerateRuntimeOptions = { /** * Silence @hey-api/openapi-ts logs and stop it from writing crash-report * files into cwd. Used by `--json` (stderr must carry only our JSON) and * by `--check` (which must leave nothing behind). */ silent?: boolean; }; /** * Translate @hey-api/openapi-ts failures into our stable error codes. * hey-api's error classes live in a transitive dependency, so they are * matched by name rather than imported. This is the only place that knows * about them (see the IR boundary notes in AGENTS.md). */ export declare function mapClientError(error: unknown, input: unknown): CodegenError; /** * Generate the client and the React Query hooks into `options.output`. * Rejects only with {@link CodegenError}, so callers can branch on `code`. */ export declare function generate(options: LimitedUserConfig, version: string, runtime?: GenerateRuntimeOptions): Promise; export { type CheckResult, check, type FileChange, type FileChangeStatus, } from "./check.mjs"; export { CodegenError, type ErrorCode, ErrorCodes, ExitCodes, } from "./errors.mjs";