import type { PathwayFile } from "../types/pathway.js"; import type { Pathway, PathwayNode, PathwayEdge } from "../types/api.js"; /** Find pathway file in a directory */ export declare function findPathwayFile(dir: string): string | null; /** Read and parse a local pathway file */ export declare function readPathwayFile(filePath: string): PathwayFile; /** Write a pathway file to disk */ export declare function writePathwayFile(filePath: string, pathway: PathwayFile): void; /** Convert API pathway response to local file format */ export declare function apiToFile(pathway: Pathway): PathwayFile; /** Convert local file format to API request body */ export declare function fileToApi(file: PathwayFile): { name: string; description?: string; nodes: PathwayNode[]; edges: PathwayEdge[]; global?: PathwayFile["global"]; }; export declare function detectFieldLoss(remote: Pathway, outgoing: { nodes: PathwayNode[]; edges: PathwayEdge[]; }): string[]; export declare function createStarterPathway(name: string): PathwayFile; /** Create a starter test cases file */ export declare function createStarterTestCases(pathwayName: string): PathwayTestCasesFile; interface PathwayTestCasesFile { pathway: string; tests: Array<{ name: string; scenario: string; expected_path?: string[]; expected_variables?: Record; }>; } export {}; //# sourceMappingURL=pathway-file.d.ts.map