import { Factory, Item } from '../../blocks/item.js'; import type { NextContinuationData } from '../etc/rawResultTypes/common.js'; /** * @internal */ export interface ContinuableResultBlueprint { result: T[]; continuation?: NextContinuationData; } /** * @internal */ export declare class ContinuableResultFactory, GetContentResult extends any[] = T[], R extends ContinuableResult = ContinuableResult> extends Factory['ctx']; parser: ContinuableResult['parser']; getContent: ContinuableResult['getContent']; getContinuation: ContinuableResult['getContinuation']; isDone?: ContinuableResult['isDone']; continuation?: ContinuableResult['continuation']; endpoint?: ContinuableResult['endpoint']; }> { constructor(ContinuableResultClass?: new () => R); } /** * Enables the loading of continuation */ export declare class ContinuableResult, GetContentResult extends any[] = T[]> extends Array implements Item { /** * Parser for the result of `MooSick#createApiRequest` * @internal */ private parser; /** * Returns the continuation from the result of the parser * @internal */ private getContinuation; /** * Returns the content from the result of the parser * @internal */ private getContent; /** * Returns whether or not there's still more items to continue fetching * @internal */ private isDone; /** * The endpoint for `MooSick#createApiRequest` * @internal */ private endpoint; /** * The continuation where this object will refer to * @internal */ private continuation?; /** * An instance of `MooSick` * @internal */ private ctx; /** * Loads the next continuation */ loadNext(): Promise | null>; /** * Basically `Array.prototype.concat` but with the behaviour of push. * Supports adding non POJA's (will add keys to `this`) * @param obj - An `Array` a or class that extends `Array` */ append(obj: Record | T[]): this; loadUntil(minimumLength?: number): Promise>; iterator(): AsyncGenerator, void, unknown>; } //# sourceMappingURL=continuableResult.d.ts.map