import type { ActorMethodReturnType, BaseActor, FunctionName } from "@ic-reactor/core"; import { CandidReactor } from "./reactor.js"; import type { DynamicMethodOptions, MetadataReactorParameters } from "./types.js"; import { FormServiceMeta, FormArgumentsMeta, VariableRefCandidate, MethodMetadataOptions, CandidFormMetadata } from "./visitor/candid/index.js"; import { MethodMeta, MethodResult, ServiceMeta } from "./visitor/returns/index.js"; declare module "@ic-reactor/core" { interface TransformArgsRegistry { metadata: TransformArgsRegistry["candid"]; } interface TransformReturnRegistry { metadata: MethodResult; } } /** * Runtime form metadata reactor for Candid interfaces. * * Extends {@link CandidReactor} and adds method input/output metadata generation * powered by {@link CandidFormVisitor}. Returned field metadata includes: * - `schema` (Zod validation) * - `component` (UI component hint) * - `renderHint` (primitive/compound + input hint) */ export declare class MetadataReactor extends CandidReactor { readonly transform: "metadata"; private methodMeta; private resultMeta; private static formVisitor; private static resultVisitor; constructor(config: MetadataReactorParameters); initialize(): Promise; private generateMetadata; /** * Get form metadata for a single method. */ getInputMeta>(methodName: M): FormArgumentsMeta | undefined; /** * Get form metadata for all service methods. */ getAllInputMeta(): FormServiceMeta | null; getOutputMeta>(methodName: M): MethodMeta | undefined; getAllOutputMeta(): ServiceMeta | null; buildForMethod>(methodName: M, options?: MethodMetadataOptions): Promise; buildForValueType(valueType: string, options?: MethodMetadataOptions): Promise; buildMethodVariableCandidates>(methodName: M): VariableRefCandidate[]; registerMethod(options: DynamicMethodOptions): Promise; private findMethod; private parseValueType; private hydrateValues; protected transformResult>(methodName: M, result: ActorMethodReturnType): MethodResult; } //# sourceMappingURL=metadata-reactor.d.ts.map