// generated by diplomat-tool import type { GeneratedChunk } from "./GeneratedChunk.mjs" import type { NucleationError } from "./NucleationError.mjs" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * A finite, lazy, canonical region-major traversal of a generator. */ export class GeneratedWorldStream { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Number of chunks not yet requested from the source. */ remaining(): bigint; /** * Generate and return the next chunk. Returns `NotFound` at end-of-stream, * and `Generation` if the underlying source failed on a valid request. */ next(): GeneratedChunk; }