import type { SetNonNullable, SetRequired } from '@skyleague/axioms/types'; import type { z as z3 } from 'zod/v3'; import type { z as z4 } from 'zod/v4'; import type { JsonSchema } from '../../json.js'; import type { ThereforeMeta } from '../primitives/base.js'; import type { DefaultType } from '../primitives/optional/default.js'; import { type ValidatorInputOptions, type ValidatorOptions } from '../primitives/validator/types.js'; import type { ValidatorType } from '../primitives/validator/validator.js'; import type { GenericAttributes, GenericOutput, ThereforeNodeDefinition, TypescriptAttributes, TypescriptOutput } from './cst.js'; import { type NodeTrace } from './trace.js'; export declare const definitionKeys: ("default" | "jsonschema" | "description" | "readonly" | "deprecated")[]; export interface Hooks { onLoad?: ((node: Node) => void)[]; onGenerate?: ((node: Node) => void)[]; onExport?: ((node: SourceNode & NameNode) => void)[]; onContent?: ((node: SourceNode & NameNode) => void)[]; } export interface NodeAttributes { typescript: TypescriptAttributes; generic: GenericAttributes; validator: ValidatorInputOptions | undefined; validatorType: ValidatorType | undefined; isGenerated: boolean; } export declare class Node { _id: string; _type: string; _children?: Node[] | undefined; _connections?: Node[] | undefined; _canReference?: boolean | undefined; _hooks?: Hooks | undefined; _guessedTrace?: NodeTrace | undefined; get _output(): (TypescriptOutput | GenericOutput)[] | undefined; _transform?: { symbolName?: (name: string) => string; referenceName?: (name: string) => string; aliasName?: (name: string) => string; } | undefined; _name?: string | undefined; _sourcePath?: string | undefined; _toZod?: Node | undefined; _attributes: NodeAttributes; _definition: ThereforeNodeDefinition; _origin: { zod?: z3.ZodType | z4.ZodType; jsonschema?: JsonSchema; }; _isCommutative: boolean; infer: unknown; input: unknown; constructor(definition?: ThereforeNodeDefinition & ThereforeMeta); describe(description: string): this; default(value: this['input']): DefaultType; jsonschema(schema: JsonSchema): this; validator(validator?: ValidatorInputOptions | undefined): this; get _validator(): ValidatorOptions; private static _validatorOptions; protected static _clone(obj: T): T; } export type SourceNode = SetNonNullable, '_sourcePath'>; export type NameNode = SetNonNullable, '_name'>;