/** * Represents a single page of results from a paginated query. * @template T The type of values held by the page. */ export declare class Page { /** * The values contained in this page. */ readonly values: readonly T[]; /** * The continuation token for fetching the next page, or undefined if there are no more items. */ readonly continuationToken?: string; /** * Creates a new Page instance. * @param values The values this page holds. * @param continuationToken The continuation token for the next page, or undefined if no more pages. */ constructor(values: readonly T[], continuationToken?: string); /** * Returns true if there are more pages available. */ get hasMoreResults(): boolean; } /** * Represents an async iterator over pages of results. * @template T The type of values held by each page. */ export interface AsyncPageable extends AsyncIterable { /** * Returns an async iterator over pages of results. * @param continuationToken Optional continuation token to start from. * @param pageSize Optional page size hint. */ asPages(continuationToken?: string, pageSize?: number): AsyncIterable>; } /** * Creates an AsyncPageable from a page fetching function. * @template T The type of values held by each page. * @param pageFunc A function that fetches pages given a continuation token and page size. * @returns An AsyncPageable that can be iterated over. */ export declare function createAsyncPageable(pageFunc: (continuationToken?: string, pageSize?: number) => Promise>): AsyncPageable;