import { SourceFile } from 'typescript'; import { LoadedFile, Type } from '@ovotech/potygen'; export declare const compactTypes: (types: Type[]) => Type[]; /** * Convert a potygen {@link LoadedFile} into a typescript {@link SourceFile}. * * @param file * @param typePrefix prefix all class names with this string * @returns */ export declare const toTypeSource: (file: LoadedFile, typePrefix?: string) => SourceFile; export declare const toTypeScriptPrinter: (root: string, template: string, typePrefix?: string) => (file: LoadedFile) => Promise<{ path: string; content: string; }>;