import { Config, DbMetadata, EntityDbMetadata, EnumField, ManyToOneField, PrimitiveField } from "joist-codegen"; import { CodegenFile } from "ts-poet"; import { Fs } from "./utils"; export declare function newFs(files: Record): Fs; export declare function newDbMeta(opt: EntityDbMetadata[] | Partial): DbMetadata; export declare function newPrimitiveField(fieldName: string, opts?: Partial): PrimitiveField; export declare function newEntityMetadata(name: string, opts?: Partial): EntityDbMetadata; export declare function newEnumField(fieldName: string, opts?: Partial): EnumField; export declare function newManyToOneField(fieldName: string, otherEntity: string, opts?: Partial): ManyToOneField; /** * Mimics the contentToString flow from packages/codegen/src/index.ts to test import extension handling. * This reproduces the same logic used in production when saving files. */ export declare function renderCodegenFile(file: CodegenFile, config: Config): string; //# sourceMappingURL=testUtils.d.ts.map