import { CustomSurveyType } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class CustomSurveyTypeService extends CRUDService<CustomSurveyType> {
    protected hasOneModels: ICrudService<CustomSurveyType>['hasOneModels'];
    get create(): (input: Partial<Record<"surveys", import("../../..").ModelWithId[]> & Record<"organization", import("../../..").ModelWithId>> & Omit<import("../API").CreateOneCustomSurveyTypeInput, "organization" | "surveys">, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").CreateOneCustomSurveyTypeInput;
    }>>>) => Promise<{
        __typename?: "CustomSurveyType";
        id: string;
        cooldownDuration?: number;
        isUniqueCooldown: boolean;
        name: string;
        surveyType: import("../API").SurveyType;
        organizationID: string;
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").CreateOneCustomSurveyTypeInput;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").CreateOneCustomSurveyTypeInput;
    }>>, CustomSurveyType>) => Promise<{
        __typename?: "CustomSurveyType";
        id: string;
        cooldownDuration?: number;
        isUniqueCooldown: boolean;
        name: string;
        surveyType: import("../API").SurveyType;
        organizationID: string;
    }>, import("@apollo/client").MutationResult<{
        createOne: import("../../..").ModelWithId;
    }>];
    get update(): (input: Partial<Record<"surveys", import("../../..").ModelWithId[]> & Record<"organization", import("../../..").ModelWithId>> & Omit<import("../API").UpdateCustomSurveyType, "organization" | "surveys"> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomSurveyTypeInput;
    }>>>) => Promise<{
        __typename?: "CustomSurveyType";
        id: string;
        cooldownDuration?: number;
        isUniqueCooldown: boolean;
        name: string;
        organizationID: string;
        surveyType: import("../API").SurveyType;
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomSurveyTypeInput;
    }>>>>) => [({ id, ...input }: Partial<Record<"surveys", import("../../..").ModelWithId[]> & Record<"organization", import("../../..").ModelWithId>> & import("../API").UpdateCustomSurveyType & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomSurveyTypeInput;
    }>>>>) => Promise<Record<string, unknown>>, import("@apollo/client").MutationResult<{
        updateOne: Record<string, unknown>;
    }>];
    get delete(): (id: string, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").DeleteOneCustomSurveyTypeMutation, import("../API").Exact<{
        input: import("../API").DeleteOneCustomSurveyTypeInput;
    }>>>) => Promise<{
        __typename?: "CustomSurveyTypeDeleteResponse";
        id?: string;
    }>;
    get list(): (input: import("../API").Exact<{
        filter: import("../API").CustomSurveyTypeFilter;
        paging: import("../API").CursorPaging;
        sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomSurveyTypesQuery, import("../API").Exact<{
        filter: import("../API").CustomSurveyTypeFilter;
        paging: import("../API").CursorPaging;
        sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
    }>>>) => Promise<{
        __typename?: "CustomSurveyTypeConnection";
        totalCount: number;
        pageInfo: {
            __typename?: "PageInfo";
            hasNextPage?: boolean;
            endCursor?: any;
            startCursor?: any;
        };
        edges: {
            __typename?: "CustomSurveyTypeEdge";
            cursor: any;
            node: {
                __typename?: "CustomSurveyType";
                id: string;
                cooldownDuration?: number;
                isUniqueCooldown: boolean;
                name: string;
                organizationID: string;
                surveyType: import("../API").SurveyType;
                surveys: {
                    __typename?: "Survey";
                    id: string;
                    name: string;
                }[];
            };
        }[];
    }>;
    get useList(): (options: import("../core").CacheUpdateOptions<import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomSurveyTypesQuery, import("../API").Exact<{
        filter: import("../API").CustomSurveyTypeFilter;
        paging: import("../API").CursorPaging;
        sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").CustomSurveyTypesQuery, import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>>;
        data: import("../API").CustomSurveyTypesQuery;
        previousData?: import("../API").CustomSurveyTypesQuery;
        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").CustomSurveyTypesQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").CustomSurveyTypesQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>>(mapFn: (previousQueryResult: import("../API").CustomSurveyTypesQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").CustomSurveyTypesQuery>, "variables">) => import("../API").CustomSurveyTypesQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomSurveyTypesQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>, import("../API").CustomSurveyTypesQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomSurveyTypesQuery>>;
        variables: import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>;
        fetchMore: <TFetchData = import("../API").CustomSurveyTypesQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter: import("../API").CustomSurveyTypeFilter;
            paging: import("../API").CursorPaging;
            sorting: import("../API").CustomSurveyTypeSort | import("../API").CustomSurveyTypeSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").CustomSurveyTypesQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").CustomSurveyTypesQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
}
