import { ApolloError } from "apollo-client"; import { PasswordChange } from "../mutations/gqlTypes/PasswordChange"; import { SetPassword } from "../mutations/gqlTypes/SetPassword"; import { TokenAuth_tokenCreate } from "../mutations/gqlTypes/TokenAuth"; import BaseDetails from "../helpers/BaseDetails"; import BaseList, { BaseListVariables } from "../helpers/BaseList"; export interface ErrorResponse { error?: any; type?: T; } export interface FunctionQueueResponse { pending: boolean; } export interface FunctionRunResponse { data?: any; dataError?: ErrorResponse; functionError?: ErrorResponse; pending?: boolean; } export declare type PromiseQueuedResponse = Promise; export declare type PromiseRunResponse = Promise>; export declare type SignIn = { data: TokenAuth_tokenCreate | null; error: ApolloError | null; } | null; export declare type SetPasswordChange = { data: PasswordChange | null; error: ApolloError | null; } | null; export declare type SetPasswordResult = { data: SetPassword | null; error: ApolloError | null; } | null; export interface WithDetails { getDetails(variables: TVariables): Promise>; } export interface WithList { getList(variables: TVariables): Promise>; }