import type { ChainDefinition } from "./types.js"; export declare function getChainsDir(): string; /** Sanitize a chain/pipeline name to prevent path traversal */ export declare function sanitizeName(name: string): string; export declare function listChains(): string[]; export declare function loadChain(name: string): ChainDefinition; export declare function saveChain(name: string, chain: ChainDefinition): void; export declare function deleteChain(name: string): void; export declare function loadChainRaw(name: string): string; export interface DependencyGraph { /** Steps grouped by execution wave (each wave can run in parallel) */ waves: string[][]; } export declare function buildDependencyGraph(chain: ChainDefinition): DependencyGraph;