import { PaginatedDocumentKeyIdPair } from './PaginatedDocumentKeyIdPair.mjs'; import { PaginationError } from './PaginationError.mjs'; /** * * Generic DTO representing a paginated list of results. Contains the current page of rows * and a key pair for fetching the next page. * * @param T The type of elements in the paginated list. * / */ export declare class PaginatedList { /** * * The list of results for the current page. */ rows: Array; /** * * The key-document ID pair to use for fetching the next page of results, or null if this is the last page. */ nextKeyPair: PaginatedDocumentKeyIdPair | undefined; /** * * * If not null the page was aborted by this error after some rows were already returned: [rows] is valid but * incomplete, and there is no [nextKeyPair] to resume from. */ error: PaginationError | undefined; constructor(partial: Partial>); }