import { JSDocableNode, InterfaceDeclaration, TypeLiteralNode, TypeNode, Identifier, SourceFile, TypeAliasDeclaration, LiteralTypeNode, EnumDeclaration, PropertySignature } from "ts-morph"; export interface PropContext { property: PropertySignature; typeNode: TypeNode; interface: InterfaceDeclaration; sourceFile: SourceFile; } export declare type PropIterator = (ctx: PropContext, schema: Schema) => { ignore: boolean; } | undefined; export interface CompilerState { getId(filePath: string): string; beforePropMount?: PropIterator; } interface ObjectProperties { [key: string]: Schema; } export interface Schema { type?: string; anyOf?: Schema[]; allOf?: Schema[]; oneOf?: Schema[]; $ref?: string; properties?: ObjectProperties; required?: string[]; const?: string | boolean | number; format?: string; enum?: (string | number)[]; items?: Schema; if?: Schema; then?: Schema; propertyNames?: Schema; additionalProperties?: Schema; description?: string; } export declare function getDescription(node: JSDocableNode): string; export declare function getRequired(node: InterfaceDeclaration | TypeLiteralNode): string[] | undefined; export declare const getLiteralTypeValue: (node: LiteralTypeNode) => any; export declare function getTypeNodeSchema(node: TypeNode, sourceFile: SourceFile, state: CompilerState): Schema; export declare function getInterface(identifier: Identifier): InterfaceDeclaration; export declare function mergeTags(schema?: { [name: string]: any; }, tags?: { [name: string]: any; }): object; export declare function getProperties(node: InterfaceDeclaration | TypeLiteralNode, sourceFile: SourceFile, state: CompilerState): ObjectProperties; export declare function getRef(identifier: Identifier, sourceFile: SourceFile, state: CompilerState): { $ref: string; }; export declare function getJsDocTags(node: JSDocableNode): {}; export declare function processInterface(node: InterfaceDeclaration, sourceFile: SourceFile, state: CompilerState): {}; export declare function processTypeAlias(node: TypeAliasDeclaration, sourceFile: SourceFile, state: CompilerState): { description: string; }; export declare function processEnum(node: EnumDeclaration): { enum: (string | number)[]; description: string; }; export declare function mergeSchema(a: Schema, b: Schema): Schema; export {};