import { GenerateProps } from "./generate/generate.types"; /** * Generate zod schemas and integration tests from a typescript file. * * This function takes care of the sorting of the `const` declarations and solves potential circular references */ export declare function generate({ sourceText, nameFilter, jsDocTagFilter, getSchemaName, keepComments, skipParseJSDoc, customJSDocFormatTypes, inputOutputMappings, }: GenerateProps): { /** * Source text with pre-process applied. */ transformedSourceText: string; /** * Get the content of the zod schemas file. * * @param typesImportPath Relative path of the source file */ getZodSchemasFile: (typesImportPath: string) => string; /** * Get the content of the integration tests file. * * @param typesImportPath Relative path of the source file * @param zodSchemasImportPath Relative path of the zod schemas file */ getIntegrationTestFile: (typesImportPath: string, zodSchemasImportPath: string) => string; /** * Get the content of the zod inferred types files. * * @param zodSchemasImportPath Relative path of the zod schemas file */ getInferredTypes: (zodSchemasImportPath: string) => string; /** * List of generation errors. */ errors: string[]; /** * `true` if zodSchemaFile have some resolvable circular dependencies */ hasCircularDependencies: boolean; };