import { ContextSpaceListOptions } from "@api-client/core/build/browser.js";

export interface CursorState {
  /**
   * The key of the last item returned by the query.
   * Used with pagination and this is encoded in the cursor.
   */
  lastKey?: string;
  /**
   * The number of records to skip before start capturing records.
   * This is used with the IDB `advance()` method.
   */
  skip?: number;
}

export type IListState = ContextSpaceListOptions & CursorState;
