/** * @links decorator implementation * * Marker decorator for the defineRouting() method * This method defines connections and AI dependencies */ import 'reflect-metadata'; import { AIDependencyMap } from './types.js'; /** * @links decorator * * Marks the method that defines workflow routing (connections) * * @example * ```typescript * @links() * defineRouting() { * this.ScheduleTrigger.out(0).to(this.Configuration.in(0)); * this.Configuration.out(0).to(this.BuildProfile.in(0)); * } * ``` */ export declare function links(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor; /** * Get the name of the method marked with @links */ export declare function getLinksMethodName(target: any): string | null; /** * Connection storage for tracking during defineRouting() execution */ export declare class ConnectionTracker { private connections; private aiDependencies; /** * Record a connection */ addConnection(fromNode: string, fromOutput: number, toNode: string, toInput: number, isError?: boolean): void; /** * Record AI dependencies for a node */ addAIDependencies(nodeName: string, dependencies: AIDependencyMap): void; /** * Get all recorded connections */ getConnections(): { from: { node: string; output: number; isError?: boolean; }; to: { node: string; input: number; }; }[]; /** * Get all AI dependencies */ getAIDependencies(): Map; /** * Clear all tracked data */ clear(): void; } /** * Global connection tracker instance * Used during defineRouting() execution to capture connections */ export declare const connectionTracker: ConnectionTracker; //# sourceMappingURL=links.d.ts.map