import { Achievement } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class AchievementService extends CRUDService<Achievement> {
    protected hasOneModels: ICrudService<Achievement>['hasOneModels'];
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
    }>, import("../API").AchievementGetQuery>, "query">) => Promise<{
        __typename: "Achievement";
        id: string;
        condition?: any[][];
        isCompleted?: boolean;
        description?: string;
        journeyID?: string;
        milestoneID?: string;
        completionType?: import("../API").CompletionType;
        name: string;
        order?: number;
        updated_at: any;
        created_at: any;
        desiredOutcome?: {
            __typename?: "DesiredOutcome";
            id: string;
            icon?: string;
            name?: string;
            description?: string;
            status?: import("../API").DesiredOutcomeTrackingStatus;
            updated_at: any;
            created_at: any;
        };
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementGetQuery, 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").AchievementGetQuery, import("../API").Exact<{
            id: string;
        }>>;
        data: import("../API").AchievementGetQuery;
        previousData?: import("../API").AchievementGetQuery;
        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").AchievementGetQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").AchievementGetQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(mapFn: (previousQueryResult: import("../API").AchievementGetQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").AchievementGetQuery>, "variables">) => import("../API").AchievementGetQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").AchievementGetQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
        }>, import("../API").AchievementGetQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").AchievementGetQuery>>;
        variables: import("../API").Exact<{
            id: string;
        }>;
        fetchMore: <TFetchData = import("../API").AchievementGetQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").AchievementGetQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").AchievementGetQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get create(): (input: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Achievement>, import("../../..").ModelWithId>> & Omit<import("../API").CreateAchievement, import("../core").HasOneRelationsOf<Achievement>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateAchievement;
    }>>>) => Promise<{
        __typename: "Achievement";
        id: string;
        condition?: any[][];
        isCompleted?: boolean;
        description?: string;
        journeyID?: string;
        milestoneID?: string;
        completionType?: import("../API").CompletionType;
        name: string;
        order?: number;
        updated_at: any;
        created_at: any;
        desiredOutcome?: {
            __typename?: "DesiredOutcome";
            id: string;
            icon?: string;
            name?: string;
            description?: string;
            status?: import("../API").DesiredOutcomeTrackingStatus;
            updated_at: any;
            created_at: any;
        };
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateAchievement;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateAchievement;
    }>>, Achievement>) => Promise<{
        __typename: "Achievement";
        id: string;
        condition?: any[][];
        isCompleted?: boolean;
        description?: string;
        journeyID?: string;
        milestoneID?: string;
        completionType?: import("../API").CompletionType;
        name: string;
        order?: number;
        updated_at: any;
        created_at: any;
        desiredOutcome?: {
            __typename?: "DesiredOutcome";
            id: string;
            icon?: string;
            name?: string;
            description?: string;
            status?: import("../API").DesiredOutcomeTrackingStatus;
            updated_at: any;
            created_at: any;
        };
    }>, import("@apollo/client").MutationResult<{
        createOne: import("../../..").ModelWithId;
    }>];
    get delete(): (id: string, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneAchievementInput;
    }>>>) => Promise<{
        __typename?: "AchievementDeleteResponse";
        id?: string;
    }>;
    get useDelete(): (options?: import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneAchievementInput;
    }>>>) => [(id?: string) => Promise<{
        __typename?: "AchievementDeleteResponse";
        id?: string;
    }>, import("@apollo/client").MutationResult<import("../API").AchievementDeleteOneMutation>];
    get update(): (input: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Achievement>, import("../../..").ModelWithId>> & Omit<import("../API").UpdateAchievement, import("../core").HasOneRelationsOf<Achievement>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneAchievementInput;
    }>>>) => Promise<{
        __typename: "Achievement";
        id: string;
        condition?: any[][];
        isCompleted?: boolean;
        description?: string;
        journeyID?: string;
        milestoneID?: string;
        completionType?: import("../API").CompletionType;
        name: string;
        order?: number;
        updated_at: any;
        created_at: any;
        desiredOutcome?: {
            __typename?: "DesiredOutcome";
            id: string;
            icon?: string;
            name?: string;
            description?: string;
            status?: import("../API").DesiredOutcomeTrackingStatus;
            updated_at: any;
            created_at: any;
        };
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneAchievementInput;
    }>>>>) => [({ id, ...input }: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Achievement>, import("../../..").ModelWithId>> & import("../API").UpdateAchievement & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneAchievementInput;
    }>>>>) => Promise<Record<string, unknown>>, import("@apollo/client").MutationResult<{
        updateOne: Record<string, unknown>;
    }>];
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").AchievementFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").AchievementListQuery, import("../API").Exact<{
        filter?: import("../API").AchievementFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
    }>>>) => Promise<{
        __typename?: "AchievementConnection";
        totalCount: number;
        edges: {
            __typename?: "AchievementEdge";
            cursor: any;
            node: {
                __typename: "Achievement";
                id: string;
                condition?: any[][];
                isCompleted?: boolean;
                description?: string;
                journeyID?: string;
                milestoneID?: string;
                completionType?: import("../API").CompletionType;
                name: string;
                order?: number;
                updated_at: any;
                created_at: any;
                desiredOutcome?: {
                    __typename?: "DesiredOutcome";
                    id: string;
                    icon?: string;
                    name?: string;
                    description?: string;
                    status?: import("../API").DesiredOutcomeTrackingStatus;
                    updated_at: any;
                    created_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").AchievementListQuery, import("../API").Exact<{
        filter?: import("../API").AchievementFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").AchievementListQuery, import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>>;
        data: import("../API").AchievementListQuery;
        previousData?: import("../API").AchievementListQuery;
        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").AchievementListQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").AchievementListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>>(mapFn: (previousQueryResult: import("../API").AchievementListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").AchievementListQuery>, "variables">) => import("../API").AchievementListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").AchievementListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>, import("../API").AchievementListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").AchievementListQuery>>;
        variables: import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>;
        fetchMore: <TFetchData = import("../API").AchievementListQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").AchievementFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").AchievementSort | import("../API").AchievementSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").AchievementListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").AchievementListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    getAchievementProgressAndCounts(achievementID: string, segmentID?: string): Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetAchievementProgressCountsQuery>>;
}
