import { Result } from "./fp.js"; export type Paginator = () => Promise; }> | null; export type PageIterator = V & { next: Paginator; [Symbol.asyncIterator]: () => AsyncIterableIterator; "~next"?: PageState | undefined; }; export declare function createPageIterator(page: V & { next: Paginator; }, halt: (v: V) => boolean): { [Symbol.asyncIterator]: () => AsyncIterableIterator; }; /** * This utility create a special iterator that yields a single value and * terminates. It is useful in paginated SDK functions that have early return * paths when things go wrong. */ export declare function haltIterator(v: V): PageIterator; /** * Converts an async iterator of `Result` into an async iterator of `V`. * When error results occur, the underlying error value is thrown. */ export declare function unwrapResultIterator(iteratorPromise: Promise, PageState>>): Promise>; export declare const URL_OVERRIDE: unique symbol; //# sourceMappingURL=operations.d.ts.map