import { SegmentPreview } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class SegmentPreviewService extends CRUDService<SegmentPreview> {
    protected hasOneModels: ICrudService<SegmentPreview>['hasOneModels'];
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
        accountFilter?: import("../API").AccountFilter;
        accountPaging?: import("../API").OffsetPaging;
        accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
        userFilter?: import("../API").UserFilter;
        userPaging?: import("../API").OffsetPaging;
        userSorting?: import("../API").UserSort | import("../API").UserSort[];
    }>, import("../API").SegmentPreviewGetQuery>, "query">) => Promise<{
        __typename?: "SegmentPreview";
        accountsCount?: number;
        usersCount?: number;
        accounts?: {
            __typename?: "SegmentPreviewAccountsConnection";
            totalCount: number;
            nodes: {
                __typename?: "Account";
                id: string;
                displayName?: string;
                accountType?: string;
                users: {
                    __typename?: "User";
                    id: string;
                }[];
            }[];
            pageInfo: {
                __typename?: "OffsetPageInfo";
                hasNextPage?: boolean;
                hasPreviousPage?: boolean;
            };
        };
        users?: {
            __typename?: "SegmentPreviewUsersConnection";
            totalCount: number;
            nodes: {
                __typename?: "User";
                id: string;
                firstName?: string;
                lastName?: string;
                fullName?: string;
                email?: string;
                accounts?: {
                    __typename?: "Account";
                    id: string;
                    displayName?: string;
                }[];
            }[];
            pageInfo: {
                __typename?: "OffsetPageInfo";
                hasNextPage?: boolean;
                hasPreviousPage?: boolean;
            };
        };
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").SegmentPreviewGetQuery, import("../API").Exact<{
        id: string;
        accountFilter?: import("../API").AccountFilter;
        accountPaging?: import("../API").OffsetPaging;
        accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
        userFilter?: import("../API").UserFilter;
        userPaging?: import("../API").OffsetPaging;
        userSorting?: import("../API").UserSort | import("../API").UserSort[];
    }>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").SegmentPreviewGetQuery, import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>>;
        data: import("../API").SegmentPreviewGetQuery;
        previousData?: import("../API").SegmentPreviewGetQuery;
        error?: import("@apollo/client").ApolloError;
        errors?: readonly import("graphql").GraphQLFormattedError[];
        loading: boolean;
        networkStatus: import("@apollo/client").NetworkStatus;
        called: boolean;
        startPolling: (pollInterval: number) => void;
        stopPolling: () => void;
        subscribeToMore: <TSubscriptionData = import("../API").SegmentPreviewGetQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").SegmentPreviewGetQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>>(mapFn: (previousQueryResult: import("../API").SegmentPreviewGetQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").SegmentPreviewGetQuery>, "variables">) => import("../API").SegmentPreviewGetQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").SegmentPreviewGetQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>, import("../API").SegmentPreviewGetQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").SegmentPreviewGetQuery>>;
        variables: import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>;
        fetchMore: <TFetchData = import("../API").SegmentPreviewGetQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
            accountFilter?: import("../API").AccountFilter;
            accountPaging?: import("../API").OffsetPaging;
            accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
            userFilter?: import("../API").UserFilter;
            userPaging?: import("../API").OffsetPaging;
            userSorting?: import("../API").UserSort | import("../API").UserSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").SegmentPreviewGetQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").SegmentPreviewGetQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get useLazyGet(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceLazyQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").SegmentPreviewGetQuery, import("../API").Exact<{
        id: string;
        accountFilter?: import("../API").AccountFilter;
        accountPaging?: import("../API").OffsetPaging;
        accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
        userFilter?: import("../API").UserFilter;
        userPaging?: import("../API").OffsetPaging;
        userSorting?: import("../API").UserSort | import("../API").UserSort[];
    }>>>>) => import("@apollo/client").LazyQueryResultTuple<import("../API").SegmentPreviewGetQuery, import("../API").Exact<{
        id: string;
        accountFilter?: import("../API").AccountFilter;
        accountPaging?: import("../API").OffsetPaging;
        accountSorting?: import("../API").AccountSort | import("../API").AccountSort[];
        userFilter?: import("../API").UserFilter;
        userPaging?: import("../API").OffsetPaging;
        userSorting?: import("../API").UserSort | import("../API").UserSort[];
    }>>;
}
