import { GraphQLClient, GraphQLError } from './graphql-client'; export type QueryOptions = { query?: string; variables?: T; operationName?: string; }; export type MutationOptions = { mutation?: string; variables?: T; operationName?: string; }; export type RequestOptions = { gql: string; variables?: T; operationName?: string; }; export type OnCheckTokenCallback = (tokenData?: TokenData, accessToken?: string) => Promise<{ accessToken: string | undefined; tokenData?: TokenData; }>; export type BaseGraphQLAPIClientOptions = { accessToken: string; graphApiUrl: string; tokenData?: TokenData; onCheckToken?: OnCheckTokenCallback; }; export declare class BaseGraphQLAPIClient { _client: GraphQLClient; accessToken: string; graphApiUrl: string; tokenData?: TokenData; onCheckToken?: OnCheckTokenCallback; constructor({ accessToken, graphApiUrl, onCheckToken, tokenData }: BaseGraphQLAPIClientOptions); createGraphQLClient(): GraphQLClient; query(options: QueryOptions): Promise>; mutate(options: MutationOptions): Promise>; _makeRequest(options: RequestOptions): Promise>; _checkToken(): Promise; } export declare class APIResult { data?: T; error?: string; errors?: GraphQLError[]; partial?: boolean; constructor(result: { data?: T; error?: string; errors?: GraphQLError[]; }); get isSuccess(): boolean; }