import type { Schema } from "./types"; export interface ConverterOptions { /** * An optional namespace where to look for decoder functions into */ nsPrefix?: string; /** * An optional namespace where to look for extra decoder library functions * exposed by the `json-schema-to-decoders` package. * * If not specified, all of the avanced decoders would be disabled */ nsLib?: string; /** * An optional function to call when a $ref is encountered. * The returned value will replace the contents of that ref. */ resolveRefPointer?: (name: string) => string; /** * An optional function to call when a $ref is encountered * and the schema of it is required. */ resolveRefSchema?: (name: string) => Schema; } export declare function convertSchema(schema: Schema, options?: ConverterOptions): string; export declare function convertContents(buffer: string, options?: ConverterOptions): string; export declare function convertFile(file: string, options?: ConverterOptions): Promise; export declare function convert(url: string | Schema, options?: ConverterOptions): Promise;