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