/**
The OffsetHelper's purpose is to simplify the carbon offsetting process.
Copyright (C) 2022 Toucan Labs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
import { TypedDocumentNode } from "@urql/core";
import { PoolSymbol } from ".";
import { BalanceResponse, BridgedBatchTokensResponse, PoolContentsResponse, ProjectResponse, RedeemsResponse, TCO2TokenResponse, UserBatchesResponse, UserRetirementsResponse } from "./responses";
import { AggregationsSchema } from "./schemas";
/**
* I have decided to separated the types for the subgraph methods here as using Pick to separate
* the needed properties from the schemas can become verbose as you will see below.
*
* See types/schemas.ts for more information on why I decided to use Pick in the first place.
*/
export declare type UserBatchesMethod = (walletAddress: string) => Promise;
export declare type TCO2TokenByIdMethod = (id: string) => Promise;
export declare type TCO2TokenByFullSymbolMethod = (symbol: string) => Promise;
export declare type AllTCO2TokensMethod = () => Promise;
export declare type BridgedBatchTokensMethod = () => Promise;
export declare type UserRetirementsMethod = (walletAddress: string, first?: number, skip?: number) => Promise;
export declare type RedeemsMethod = (pool: PoolSymbol, first?: number, skip?: number) => Promise;
export declare type UserRedeemsMethod = (walletAddress: string, pool: PoolSymbol, first?: number, skip?: number) => Promise;
export declare type PoolContentsMethod = (pool: PoolSymbol, first?: number, skip?: number) => Promise;
export declare type ProjectByIdMethod = (id: string) => Promise;
export declare type ProjectsByIdsMethod = (ids: Array) => Promise;
export declare type AggregationsMethod = () => Promise;
export declare type UserTCO2BalanceMethod = (userAddress: string, tokenAddress: string) => Promise;
export declare type CustomQueryMethod = (query: TypedDocumentNode, params?: Record) => Promise;