import type { GraphQLFormattedError } from '../types'; export interface AiClientState { data: T; hasError: boolean; isLoading: boolean; /** * @deprecated will be removed in a future major version. Superseded by `errors` * @description errors returned from the websocket connection */ messages?: GraphQLFormattedError[]; /** * @description errors returned from the websocket connection */ errors?: GraphQLFormattedError[]; } export interface AiClientResponse { data: T | null; errors?: GraphQLFormattedError[]; } export declare const INITIAL_STATE: { hasError: boolean; isLoading: boolean; messages: undefined; }; export declare const LOADING_STATE: { hasError: boolean; isLoading: boolean; messages: undefined; }; export declare const ERROR_STATE: { hasError: boolean; isLoading: boolean; };