export type ParamType = string | number | symbol; export type TObject = Record; export type CustomQuery = { [P in T]?: string; } & { metadata?: unknown; }; export interface ContextQueryParams { query: string; variables: TObject; } export type ContextQuery = { [Key in T]: ContextQueryParams; }; export type CustomQueryFunction = ({ query, variables, metadata, }: { query: string; variables: T; metadata: unknown; }) => { query: string; variables: T; metadata?: unknown; }; export type ComposableFunctionArgs = T & { customQuery?: CustomQuery; }; export type ApiClientMethod = (...args: any) => Promise; export type ApiClientMethods = { [K in keyof T]: T[K] extends (...args: any) => any ? (...args: [...Parameters, CustomQuery?]) => ReturnType : T[K]; }; export type AxiosError = { isAxiosError: boolean; code: string; response?: { status: number; }; }; export type ApolloError = { networkError?: number; code?: string | number; graphQLErrors: Array; }; export type StatusCode = number | null; export type UnknownError = { [K in T]?: number; } & { [x: string]: UnknownError | any; }; export type ErrorObject = AxiosError | ApolloError | UnknownError; //# sourceMappingURL=base.d.ts.map