import * as ts from 'typescript'; import { Document, DocumentContext } from '@ovotech/ts-compose'; import { Schema } from 'avsc'; export declare type CustomLogicalType = { module: string; named: string; } | { module: string; defaultAs: string; } | { module: string; allAs: string; }; export interface Context extends DocumentContext { logicalTypes?: { [key: string]: string | CustomLogicalType; }; namespace?: string; refs?: { [key: string]: Schema; }; external?: { [file: string]: { [key: string]: Schema; }; }; defaultsAsOptional?: boolean; withTypescriptEnums?: boolean; } export declare type Convert = (context: Context, type: TSchema) => Document;