import 'tsx'; import type { ThereforeOutput } from '../../commands/generate/output/types.js'; import type { Node, SourceNode } from '../cst/node.js'; import type { ZodSchema } from './zod/type.js'; export declare function loadNodes({ sourceSymbol, node, sourcePath, seen, }: { sourceSymbol: string | undefined; node: Node; sourcePath: string | undefined; seen?: Set; }): Node[]; export interface GeneratorHooks { onLoad: ((node: Node) => void)[]; onExport: ((node: Node) => void)[]; onGenerate: ((node: Node) => void)[]; } export interface OutputGenerator { fromSymbol({ symbol, output }: { symbol: SourceNode; output: ThereforeOutput; }): void; hooks?: Partial; } export declare class Therefore { generators: OutputGenerator[]; zodCache: WeakMap | undefined; static moduleSymbols: Map; static jsonSchemaCache: WeakMap; static scanModule({ entry, sourcePath, sourceFiles, require, seenNodes, logger, }: { entry: string; sourcePath: string | undefined; sourceFiles: Set; require?: (module: string) => Promise>; seenNodes?: WeakSet; logger?: typeof console | undefined; }): Promise; exportSymbol({ symbol, sourcePath, sourceSymbol, }: { symbol: Node; sourcePath: string | undefined; sourceSymbol: string | undefined; }): import("type-fest").SetNonNullable<{ _id: string; _type: string; _children?: Node[] | undefined | undefined; _connections?: Node[] | undefined | undefined; _canReference?: boolean | undefined | undefined; _hooks?: import("../../lib/cst/node.js").Hooks | undefined; _guessedTrace?: import("../cst/trace.js").NodeTrace | undefined; readonly _output: (import("../cst/cst.js").TypescriptOutput | import("../cst/cst.js").GenericOutput)[] | undefined; _transform?: { symbolName?: (name: string) => string; referenceName?: (name: string) => string; aliasName?: (name: string) => string; } | undefined | undefined; _sourcePath?: string | undefined | undefined; _toZod?: Node | undefined; _attributes: import("../../lib/cst/node.js").NodeAttributes; _definition: import("../cst/cst.js").ThereforeNodeDefinition; _origin: { zod?: import("zod").ZodType | import("zod/v4").ZodType; jsonschema?: import("../../json.js").JsonSchema; }; _isCommutative: boolean; infer: unknown; input: unknown; describe: (description: string) => Node; default: (value: unknown) => import("./optional/default.js").DefaultType; jsonschema: (schema: import("../../json.js").JsonSchema) => Node; validator: (validator?: import("./validator/types.js").ValidatorInputOptions | undefined) => Node; readonly _validator: import("./validator/types.js").ValidatorOptions; _name: string | undefined; }, "_name"> & import("type-fest").SetNonNullable<{ _id: string; _type: string; _children?: Node[] | undefined | undefined; _connections?: Node[] | undefined | undefined; _canReference?: boolean | undefined | undefined; _hooks?: import("../../lib/cst/node.js").Hooks | undefined; _guessedTrace?: import("../cst/trace.js").NodeTrace | undefined; readonly _output: (import("../cst/cst.js").TypescriptOutput | import("../cst/cst.js").GenericOutput)[] | undefined; _transform?: { symbolName?: (name: string) => string; referenceName?: (name: string) => string; aliasName?: (name: string) => string; } | undefined | undefined; _name?: string | undefined | undefined; _toZod?: Node | undefined; _attributes: import("../../lib/cst/node.js").NodeAttributes; _definition: import("../cst/cst.js").ThereforeNodeDefinition; _origin: { zod?: import("zod").ZodType | import("zod/v4").ZodType; jsonschema?: import("../../json.js").JsonSchema; }; _isCommutative: boolean; infer: unknown; input: unknown; describe: (description: string) => Node; default: (value: unknown) => import("./optional/default.js").DefaultType; jsonschema: (schema: import("../../json.js").JsonSchema) => Node; validator: (validator?: import("./validator/types.js").ValidatorInputOptions | undefined) => Node; readonly _validator: import("./validator/types.js").ValidatorOptions; _sourcePath: string | undefined; }, "_sourcePath">; static awaitSymbol(symbol: Promise | unknown): Promise> | null | undefined>; static loadSymbolTree(symbol: Node, { fallbackName, seen, symbols, }?: { fallbackName?: string | undefined; seen?: WeakSet; symbols?: WeakSet; }): Promise; static jsonschema(node: Node, { fallbackName }?: { fallbackName?: string; }): Promise; loadSymbol(symbol: Node): void; generateSymbol(symbol: Node): void; } export declare const therefore: Therefore;