import { Conversation } from '../../../graphql.autogenerated';
import { ConvsFilters } from '../utils/convs';
declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelectedUpdate?: (conv: Conversation) => void, notifyUser?: boolean, filters?: ConvsFilters, skip?: boolean): {
    convs: {
        __typename?: "Conversation" | undefined;
        workspaceId: number;
        id: string;
        integrationId: string;
        integrationType: import("../../../graphql.autogenerated").IntegrationType;
        clientId: string;
        ended: boolean;
        endedBy?: string | null | undefined;
        externalConversationId?: string | null | undefined;
        tags?: string[] | null | undefined;
        createdAt: any;
        endedAt?: any;
        stageId?: string | null | undefined;
        orderNo?: string | null | undefined;
        assigneeId?: string | null | undefined;
        aiId?: string | null | undefined;
        aiAssigneed?: boolean | null | undefined;
        ratingFlowInProgress?: boolean | null | undefined;
        broadcastId?: string | null | undefined;
        broadcastName?: string | null | undefined;
        integrationSwitches?: {
            __typename?: "ConvIntegrationSwitch" | undefined;
            fromIntegrationId: string;
            fromIntegrationType: import("../../../graphql.autogenerated").IntegrationType;
            toIntegrationId: string;
            toIntegrationType: import("../../../graphql.autogenerated").IntegrationType;
            switchedAt: any;
            switchedBy?: string | null | undefined;
        }[] | null | undefined;
        messages?: {
            __typename?: "Message" | undefined;
            messageId: string;
            content: string;
            type: import("../../../graphql.autogenerated").MessageType;
            noteType?: import("../../../graphql.autogenerated").NoteType | null | undefined;
            isAgent: boolean;
            agentId?: string | null | undefined;
            status?: import("../../../graphql.autogenerated").MessageStatus | null | undefined;
            failedReason?: string | null | undefined;
            externalMessageId?: string | null | undefined;
            tags?: string[] | null | undefined;
            createdAt: any;
            context?: {
                __typename?: "MessageContext" | undefined;
                replyToId?: string | null | undefined;
                replyToContent: string;
                replyToType: import("../../../graphql.autogenerated").MessageType;
            } | null | undefined;
        }[] | null | undefined;
        client?: {
            __typename?: "ConversationClient" | undefined;
            name?: string | null | undefined;
            surname?: string | null | undefined;
            code?: string | null | undefined;
            phone?: string | null | undefined;
            isDeleted: boolean;
        } | null | undefined;
        assignees?: ({
            __typename?: "ConvAssignment" | undefined;
            assigneeId: string;
            assignDate?: any;
            isAi?: boolean | null | undefined;
        } | null)[] | null | undefined;
    }[] | null | undefined;
    loading: boolean;
    refetch: () => void;
};
export default useConversationsPeriodicFetch;
