import { type ErrorType, type PromiseResult, type Result } from '../ErrorResult.js'; import type { Connection, Edge, Paging } from '../Types.js'; export interface PagingInfo { forwards: boolean; count: number | null; } export declare function getPagingInfo(paging: Paging | undefined): Result; export declare function getAllPagesForConnection, TError extends ErrorType>(initialPaging: Paging | undefined, pageGenerator: (paging: Paging) => PromiseResult | null, TError>): AsyncGenerator, TError>, undefined>; export declare function getAllNodesForConnection, TError extends ErrorType>(initialPaging: Paging | undefined, pageGenerator: (paging: Paging) => PromiseResult | null, TError>): AsyncGenerator;