import { Either } from "effect"; export interface GraphNode { id: string; dependsOn?: string[]; } export declare function topologicalSort( nodes: T[], ): Either.Either< T[], { cycle: string[]; } >;