import type { Token } from '@rimbu/base'; import { NonEmptyBase } from '@rimbu/collection-types/map-custom'; import { OptLazy, OptLazyOr, TraverseState, type RelatedTo, type ToJSON } from '@rimbu/common'; import { Stream, type StreamSource } from '@rimbu/stream'; import type { ValuedGraphBase, ValuedGraphTypesContextImpl } from '@rimbu/graph/custom'; import type { Link, ValuedGraphElement, ValuedLink, WithGraphValues } from '../../common/index.cjs'; export declare class ValuedGraphNonEmpty = WithGraphValues> extends NonEmptyBase> implements ValuedGraphBase.NonEmpty { readonly isDirected: boolean; readonly context: TpG['context']; readonly linkMap: TpG['linkMapNonEmpty']; readonly connectionSize: number; _NonEmptyType: TpG['nonEmpty']; constructor(isDirected: boolean, context: TpG['context'], linkMap: TpG['linkMapNonEmpty'], connectionSize: number); copy(linkMap: TpG['linkMapNonEmpty'], connectionSize: number): TpG['nonEmpty']; copyE(linkMap: TpG['linkMap'], connectionSize: number): TpG['normal']; assumeNonEmpty(): any; asNormal(): any; forEach(f: (entry: ValuedGraphElement, index: number, halt: () => void) => void, options?: { state?: TraverseState; }): void; stream(): Stream.NonEmpty>; get nodeSize(): number; streamNodes(): Stream.NonEmpty; streamConnections(): Stream>; hasNode(node: RelatedTo): boolean; hasConnection(node1: RelatedTo, node2: RelatedTo): boolean; getValue(node1: RelatedTo, node2: RelatedTo, otherwise?: OptLazy): V | O; getConnectionStreamFrom(node1: RelatedTo): Stream>; getConnectionStreamTo(node: RelatedTo): Stream>; getConnectionsFrom(node1: RelatedTo): TpG['linkConnections']; isSink(node: RelatedTo): boolean; isSource(node: RelatedTo): boolean; addNode(node: N): TpG['nonEmpty']; addNodes(nodes: StreamSource): TpG['nonEmpty']; removeNode(node: RelatedTo): TpG['normal']; removeNodes(nodes: StreamSource>): TpG['normal']; connect(node1: N, node2: N, value: V): TpG['nonEmpty']; connectAll(links: StreamSource['link']>): TpG['nonEmpty']; modifyAt(node1: N, node2: N, options: { ifNew?: OptLazyOr; ifExists?: ((value: V, remove: Token) => V | Token) | V; }): TpG['nonEmpty']; disconnect(node1: RelatedTo, node2: RelatedTo): TpG['nonEmpty']; disconnectAll(links: StreamSource>>): TpG['nonEmpty']; removeUnconnectedNodes(): TpG['normal']; mapValues(mapFun: (value: V, node1: N, node2: N) => V2): WithGraphValues['nonEmpty']; toString(): string; toJSON(): ToJSON<[N, (readonly [N, V])[]][]>; toBuilder(): TpG['builder']; }