import { GraphQLOpts, RequestResponseError } from "./request"; export interface GetPageQuery { page: { items: Array | null; last_key: string; } | null; } export interface GetPageQueryVariables { limit: number; lastKey: string; } export interface GetPageQueryMeta { __opType: GetPageQuery; __opVariablesType: Variables; __tag: "graphql-operation"; } export declare function fetchAllItems(query: GetPageQueryMeta, vars: Variables, opts?: GraphQLOpts["__opType"]> & { limit?: number; }): Promise<{ kind: "data"; data: T[]; } | RequestResponseError>; export declare function iterAllItems(query: GetPageQueryMeta, vars: Variables, opts?: GraphQLOpts["__opType"]> & { limit?: number; }): AsyncGenerator, void, unknown>;