import { ApiError } from '@dvn/core/api';
import { Meta, QueryResponse } from '@dvn/core/api/dto/query';
import { DataModel } from './data-model';
export declare class ListFetchState {
  data: Array<DataModel>;
  error: ApiError;
  isPending: boolean;
  meta: Meta;
  constructor(data?: Array<any>, meta?: Meta, isPending?: boolean, error?: ApiError);
  static init: () => ListFetchState;
  beforeFetch: () => ListFetchState;
  afterFetch: (response: QueryResponse, append?: boolean) => ListFetchState;
  afterFetchError: (error: ApiError) => ListFetchState;
  afterUpdateItem: (itemId: string, data: object) => ListFetchState;
  isEndReached: () => boolean;
}
