import { Fetch } from './fetch'; import { AsyncStorage } from './storage'; export declare type GqlResponse = { data: { [requestName in K]: T; }; errors?: GqlResponseError[]; }; export declare type GqlResponseError = { message: string; path?: string | string[]; locations: Array<{ line: number; column: number; }>; } & Record; export declare class GqlError { readonly status: number; readonly errors: GqlResponse['data']['errors']; readonly graphql = true; constructor(status: number, errors: GqlResponse['data']['errors']); get message(): string; } export interface StatelessConfig { baseUrl: string; clientId: string; fetch?: Fetch; } export interface Config extends StatelessConfig { /** * Where to store the tokens and user details. Defaults to localStorage */ storage?: AsyncStorage; } export interface ApiHealth { introspection: boolean; playground: boolean; status: 'RUNNING'; version: string; }