import type { GqlIssuedClaim } from '@coinweb/wallet-lib';

export type Client = {
  fetchClaims<T>(
    firstPart: NonNullable<unknown>,
    secondPart: T,
    range?: {
      start: T extends null ? unknown : T | null;
      end: T extends null ? unknown : T | null;
    }
  ): Promise<GqlIssuedClaim[]>;
};

export type Pagination = {
  limit: number;
  offset: number;
};
