import type { Stream, Streamable } from '@rimbu/stream'; import type { GraphBase, GraphElement } from '../../common/index.cjs'; export interface EdgeGraphBase extends GraphBase { /** * Returns false since this is an arrow (directed) graph instance. */ readonly isDirected: false; } export declare namespace EdgeGraphBase { interface NonEmpty extends GraphBase.NonEmpty, Omit, keyof GraphBase.NonEmpty>, Streamable.NonEmpty> { /** * Returns a non-empty `Stream` containing all graph elements of this collection as single tuples for isolated nodes * and 2-valued tuples of nodes for connections. * @example * ```ts * EdgeGraphHashed.of([1], [2, 3]).stream().toArray() // => [[1], [2, 3]] * ``` */ stream(): Stream.NonEmpty>; } interface Builder extends GraphBase.Builder { } interface Context extends GraphBase.Context { readonly isDirected: false; } /** * Utility interface that provides higher-kinded types for this collection. */ interface Types extends GraphBase.Types { readonly normal: EdgeGraphBase; readonly nonEmpty: EdgeGraphBase.NonEmpty; readonly context: EdgeGraphBase.Context; readonly builder: EdgeGraphBase.Builder; } }