import { Funnel } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class FunnelService extends CRUDService<Funnel> {
    protected hasOneModels: ICrudService<Funnel>['hasOneModels'];
    validateName: (name: string) => Promise<boolean>;
    get create(): (input: Partial<Record<"users" | "accounts" | "steps", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Funnel>, import("../../..").ModelWithId>> & Omit<import("../API").FunnelInput, "users" | "accounts" | "steps" | import("../core").HasOneRelationsOf<Funnel>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelCreateOneMutation, import("../API").Exact<{
        input: import("../API").FunnelInput;
    }>>>) => Promise<{
        __typename?: "Funnel";
        id: string;
        name?: string;
        status?: import("../API").SegmentStatus;
        description?: string;
        recordOwnerNames?: string[];
        entryQueryLiteral?: any[][];
        completionQueryLiteral?: any[][];
        updated_at: any;
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelCreateOneMutation, import("../API").Exact<{
        input: import("../API").FunnelInput;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelCreateOneMutation, import("../API").Exact<{
        input: import("../API").FunnelInput;
    }>>, Funnel>) => Promise<{
        __typename?: "Funnel";
        id: string;
        name?: string;
        status?: import("../API").SegmentStatus;
        description?: string;
        recordOwnerNames?: string[];
        entryQueryLiteral?: any[][];
        completionQueryLiteral?: any[][];
        updated_at: any;
    }>, import("@apollo/client").MutationResult<any>];
    get update(): (input: Partial<Record<"users" | "accounts" | "steps", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Funnel>, import("../../..").ModelWithId>> & Omit<import("../API").FunnelUpdateInput, "users" | "accounts" | "steps" | import("../core").HasOneRelationsOf<Funnel>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFunnelInput;
    }>>>) => Promise<{
        __typename?: "Funnel";
        id: string;
        name?: string;
        status?: import("../API").SegmentStatus;
        description?: string;
        recordOwnerNames?: string[];
        entryQueryLiteral?: any[][];
        completionQueryLiteral?: any[][];
        updated_at: any;
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFunnelInput;
    }>>>>) => [({ id, ...input }: Partial<Record<"users" | "accounts" | "steps", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Funnel>, import("../../..").ModelWithId>> & import("../API").FunnelUpdateInput & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFunnelInput;
    }>>>>) => Promise<any>, import("@apollo/client").MutationResult<any>];
    get delete(): (id: string, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneFunnelInput;
    }>>>) => Promise<{
        __typename?: "FunnelDeleteResponse";
        id?: string;
    }>;
    get useDelete(): (options?: import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneFunnelInput;
    }>>>) => [(id?: string) => Promise<{
        __typename?: "FunnelDeleteResponse";
        id?: string;
    }>, import("@apollo/client").MutationResult<import("../API").FunnelDeleteOneMutation>];
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").FunnelFilter;
        sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
        paging?: import("../API").CursorPaging;
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelListQuery, import("../API").Exact<{
        filter?: import("../API").FunnelFilter;
        sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
        paging?: import("../API").CursorPaging;
    }>>>) => Promise<{
        __typename?: "FunnelConnection";
        totalCount: number;
        edges: {
            __typename?: "FunnelEdge";
            cursor: any;
            node: {
                __typename?: "Funnel";
                id: string;
                name?: string;
                status?: import("../API").SegmentStatus;
                description?: string;
                recordOwnerNames?: string[];
                entryQueryLiteral?: any[][];
                completionQueryLiteral?: any[][];
                updated_at: any;
            };
        }[];
        pageInfo: {
            __typename?: "PageInfo";
            endCursor?: any;
            startCursor?: any;
            hasNextPage?: boolean;
            hasPreviousPage?: boolean;
        };
    }>;
    get useList(): (options: import("../core").CacheUpdateOptions<import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelListQuery, import("../API").Exact<{
        filter?: import("../API").FunnelFilter;
        sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
        paging?: import("../API").CursorPaging;
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").FunnelListQuery, import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>>;
        data: import("../API").FunnelListQuery;
        previousData?: import("../API").FunnelListQuery;
        error?: import("@apollo/client").ApolloError;
        loading: boolean;
        networkStatus: import("@apollo/client").NetworkStatus;
        called: boolean;
        variables: import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>;
        startPolling: (pollInterval: number) => void;
        stopPolling: () => void;
        subscribeToMore: <TSubscriptionData = import("../API").FunnelListQuery, TSubscriptionVariables = import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").FunnelListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars = import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>>(mapFn: (previousQueryResult: import("../API").FunnelListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").FunnelListQuery>, "variables">) => import("../API").FunnelListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").FunnelListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>, import("../API").FunnelListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").FunnelListQuery>>;
        fetchMore: <TFetchData = import("../API").FunnelListQuery, TFetchVars = import("../API").Exact<{
            filter?: import("../API").FunnelFilter;
            sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
            paging?: import("../API").CursorPaging;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").FunnelListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").FunnelListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get useGetLazy(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceLazyQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FunnelListQuery, import("../API").Exact<{
        filter?: import("../API").FunnelFilter;
        sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
        paging?: import("../API").CursorPaging;
    }>>>>) => import("@apollo/client").LazyQueryResultTuple<import("../API").FunnelListQuery, import("../API").Exact<{
        filter?: import("../API").FunnelFilter;
        sorting?: import("../API").FunnelSort | import("../API").FunnelSort[];
        paging?: import("../API").CursorPaging;
    }>>;
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
    }>, import("../API").GetFunnelQuery>, "query">) => Promise<{
        __typename?: "Funnel";
        id: string;
        name?: string;
        status?: import("../API").SegmentStatus;
        description?: string;
        recordOwnerNames?: string[];
        entryQueryLiteral?: any[][];
        completionQueryLiteral?: any[][];
        updated_at: any;
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").GetFunnelQuery, import("../API").Exact<{
        id: string;
    }>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").GetFunnelQuery, import("../API").Exact<{
            id: string;
        }>>;
        data: import("../API").GetFunnelQuery;
        previousData?: import("../API").GetFunnelQuery;
        error?: import("@apollo/client").ApolloError;
        loading: boolean;
        networkStatus: import("@apollo/client").NetworkStatus;
        called: boolean;
        variables: import("../API").Exact<{
            id: string;
        }>;
        startPolling: (pollInterval: number) => void;
        stopPolling: () => void;
        subscribeToMore: <TSubscriptionData = import("../API").GetFunnelQuery, TSubscriptionVariables = import("../API").Exact<{
            id: string;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").GetFunnelQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars = import("../API").Exact<{
            id: string;
        }>>(mapFn: (previousQueryResult: import("../API").GetFunnelQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").GetFunnelQuery>, "variables">) => import("../API").GetFunnelQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetFunnelQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
        }>, import("../API").GetFunnelQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetFunnelQuery>>;
        fetchMore: <TFetchData = import("../API").GetFunnelQuery, TFetchVars = import("../API").Exact<{
            id: string;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").GetFunnelQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").GetFunnelQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get useGetAccountFunnelTableList(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").GetAccountFunnelTableListQuery, import("../API").Exact<{
        funnelId: string;
        organizationId: string;
        skip: number;
        take: number;
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").GetAccountFunnelTableListQuery, import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>>;
        data: import("../API").GetAccountFunnelTableListQuery;
        previousData?: import("../API").GetAccountFunnelTableListQuery;
        error?: import("@apollo/client").ApolloError;
        loading: boolean;
        networkStatus: import("@apollo/client").NetworkStatus;
        called: boolean;
        variables: import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>;
        startPolling: (pollInterval: number) => void;
        stopPolling: () => void;
        subscribeToMore: <TSubscriptionData = import("../API").GetAccountFunnelTableListQuery, TSubscriptionVariables = import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").GetAccountFunnelTableListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars = import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>>(mapFn: (previousQueryResult: import("../API").GetAccountFunnelTableListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").GetAccountFunnelTableListQuery>, "variables">) => import("../API").GetAccountFunnelTableListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetAccountFunnelTableListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>, import("../API").GetAccountFunnelTableListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetAccountFunnelTableListQuery>>;
        fetchMore: <TFetchData = import("../API").GetAccountFunnelTableListQuery, TFetchVars = import("../API").Exact<{
            funnelId: string;
            organizationId: string;
            skip: number;
            take: number;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").GetAccountFunnelTableListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").GetAccountFunnelTableListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
}
