import * as Types from '../../../../../api/types';
import * as ApolloReactCommon from '@apollo/client';
import * as ApolloReactHooks from '@apollo/client';
export declare type ConversationsQueryVariables = Types.Exact<{
    after?: Types.InputMaybe<Types.Scalars['ID']>;
}>;
export declare type ConversationsQuery = {
    __typename?: 'Query';
    Conversations?: Array<{
        __typename?: 'Conversation';
        _id: string;
        done: boolean;
        answered: boolean;
        createdAt: string;
        visitor: {
            __typename?: 'Visitor';
            name?: string | null | undefined;
            email?: string | null | undefined;
            image?: string | null | undefined;
        };
        lastItem?: {
            __typename?: 'ConversationItem';
            _id: string;
            conversationId: string;
            createdAt: string;
            senderType: Types.ConversationSenderType;
            content: {
                __typename?: 'ConversationContent';
                type: Types.ConversationContentType;
                messageString?: string | null | undefined;
                message: Array<{
                    __typename?: 'ParagraphElement';
                    _id: string;
                    type: string;
                    children: Array<{
                        __typename?: 'InlineLinkElement';
                        _id: string;
                        url: string;
                        type: string;
                        children?: Array<{
                            __typename?: 'InlineTextElement';
                            _id: string;
                            text: string;
                            bold?: boolean | null | undefined;
                            italic?: boolean | null | undefined;
                            underline?: boolean | null | undefined;
                        }> | null | undefined;
                    } | {
                        __typename?: 'InlineTextElement';
                        _id: string;
                        text: string;
                        bold?: boolean | null | undefined;
                        italic?: boolean | null | undefined;
                        underline?: boolean | null | undefined;
                    }>;
                }>;
            };
            sender: {
                __typename?: 'APIIntegration';
                logoURL?: string | null | undefined;
                displayName?: string | null | undefined;
                displayDescription?: string | null | undefined;
            } | {
                __typename?: 'MemberUser';
                name?: string | null | undefined;
                lastName: string;
                firstName: string;
                logoURL?: string | null | undefined;
            } | {
                __typename?: 'Visitor';
                _id: string;
                name?: string | null | undefined;
                image?: string | null | undefined;
            };
        } | null | undefined;
    } | null | undefined> | null | undefined;
};
export declare const ConversationsDocument: ApolloReactCommon.DocumentNode;
/**
 * __useConversationsQuery__
 *
 * To run a query within a React component, call `useConversationsQuery` and pass it any options that fit your needs.
 * When your component renders, `useConversationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useConversationsQuery({
 *   variables: {
 *      after: // value for 'after'
 *   },
 * });
 */
export declare function useConversationsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<ConversationsQuery, ConversationsQueryVariables>): ApolloReactCommon.QueryResult<ConversationsQuery, Types.Exact<{
    after?: string;
}>>;
export declare function useConversationsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<ConversationsQuery, ConversationsQueryVariables>): ApolloReactCommon.QueryTuple<ConversationsQuery, Types.Exact<{
    after?: string;
}>>;
export declare type ConversationsQueryHookResult = ReturnType<typeof useConversationsQuery>;
export declare type ConversationsLazyQueryHookResult = ReturnType<typeof useConversationsLazyQuery>;
export declare type ConversationsQueryResult = ApolloReactCommon.QueryResult<ConversationsQuery, ConversationsQueryVariables>;
