import { CustomObject } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class CustomObjectService extends CRUDService<CustomObject> {
    protected hasOneModels: ICrudService<CustomObject>['hasOneModels'];
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
    }>, import("../API").CustomObjectGetQuery>, "query">) => Promise<{
        __typename?: "CustomObject";
        id: string;
        name: string;
        data?: any;
        accountID?: string;
        opportunityID?: string;
        userID?: string;
        organizationID: string;
        created_at: any;
        updated_at: any;
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectGetQuery, 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").CustomObjectGetQuery, import("../API").Exact<{
            id: string;
        }>>;
        data: import("../API").CustomObjectGetQuery;
        previousData?: import("../API").CustomObjectGetQuery;
        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").CustomObjectGetQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").CustomObjectGetQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(mapFn: (previousQueryResult: import("../API").CustomObjectGetQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").CustomObjectGetQuery>, "variables">) => import("../API").CustomObjectGetQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomObjectGetQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
        }>, import("../API").CustomObjectGetQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomObjectGetQuery>>;
        variables: import("../API").Exact<{
            id: string;
        }>;
        fetchMore: <TFetchData = import("../API").CustomObjectGetQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").CustomObjectGetQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").CustomObjectGetQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get create(): (input: Partial<Record<"externalIDs" | "properties", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<CustomObject>, import("../../..").ModelWithId>> & Omit<import("../API").CustomObjectInput, "externalIDs" | "properties" | import("../core").HasOneRelationsOf<CustomObject>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectCreateOneMutation, import("../API").Exact<{
        input: import("../API").CustomObjectInput;
    }>>>) => Promise<{
        __typename?: "CustomObject";
        id: string;
        name: string;
        data?: any;
        accountID?: string;
        opportunityID?: string;
        userID?: string;
        organizationID: string;
        created_at: any;
        updated_at: any;
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectCreateOneMutation, import("../API").Exact<{
        input: import("../API").CustomObjectInput;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectCreateOneMutation, import("../API").Exact<{
        input: import("../API").CustomObjectInput;
    }>>, CustomObject>) => Promise<{
        __typename?: "CustomObject";
        id: string;
        name: string;
        data?: any;
        accountID?: string;
        opportunityID?: string;
        userID?: string;
        organizationID: string;
        created_at: any;
        updated_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").CustomObjectDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneCustomObjectInput;
    }>>>) => Promise<{
        __typename?: "CustomObjectDeleteResponse";
        id?: string;
    }>;
    get useDelete(): (options?: import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneCustomObjectInput;
    }>>>) => [(id?: string) => Promise<{
        __typename?: "CustomObjectDeleteResponse";
        id?: string;
    }>, import("@apollo/client").MutationResult<import("../API").CustomObjectDeleteOneMutation>];
    get update(): (input: Partial<Record<"externalIDs" | "properties", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<CustomObject>, import("../../..").ModelWithId>> & Omit<import("../API").CustomObjectUpdateInput, "externalIDs" | "properties" | import("../core").HasOneRelationsOf<CustomObject>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomObjectInput;
    }>>>) => Promise<{
        __typename?: "CustomObject";
        id: string;
        name: string;
        data?: any;
        accountID?: string;
        opportunityID?: string;
        userID?: string;
        organizationID: string;
        created_at: any;
        updated_at: any;
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomObjectInput;
    }>>>>) => [({ id, ...input }: Partial<Record<"externalIDs" | "properties", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<CustomObject>, import("../../..").ModelWithId>> & import("../API").CustomObjectUpdateInput & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneCustomObjectInput;
    }>>>>) => Promise<Record<string, unknown>>, import("@apollo/client").MutationResult<{
        updateOne: Record<string, unknown>;
    }>];
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").CustomObjectFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectsListQuery, import("../API").Exact<{
        filter?: import("../API").CustomObjectFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
    }>>>) => Promise<{
        __typename?: "CustomObjectConnection";
        totalCount: number;
        edges: {
            __typename?: "CustomObjectEdge";
            cursor: any;
            node: {
                __typename?: "CustomObject";
                id: string;
                name: string;
                data?: any;
                accountID?: string;
                opportunityID?: string;
                userID?: string;
                organizationID: string;
                created_at: any;
                updated_at: any;
                opportunity?: {
                    __typename?: "Opportunity";
                    id: string;
                    name?: string;
                    displayName: string;
                    status: import("../API").OpportunityStatus;
                    type?: import("../API").OpportunityType;
                    description?: string;
                    objectSource?: import("../API").SourceOfData;
                };
                user?: {
                    __typename?: "User";
                    id: string;
                    vip?: boolean;
                    email?: string;
                    firstName?: string;
                    lastName?: string;
                    fullName?: string;
                    objectSource?: import("../API").SourceOfData;
                };
                properties?: {
                    __typename?: "Property";
                    id: string;
                    dataType: import("../API").DataType;
                    organizationID: string;
                    userID?: string;
                    accountID?: string;
                    opportunityID?: string;
                    ticketID?: string;
                    parlorKey: string;
                    objectSource?: import("../API").SourceOfData;
                    type: import("../API").PropertyType;
                    name: string;
                    TextValue?: string;
                    NumberValue?: number;
                    DateValue?: any;
                    BooleanValue?: boolean;
                    isArchived?: boolean;
                    isDisplayed: boolean;
                    created_at: any;
                    updated_at: any;
                }[];
                externalIDs?: {
                    __typename?: "ExternalID";
                    id: string;
                    externalID: string;
                    objectType: string;
                    objectSource: string;
                    accountID?: string;
                    integrationInstanceID?: string;
                    adminID?: string;
                    ticketID?: string;
                    needID?: string;
                    opportunityID?: string;
                    organizationID: string;
                    customObjectID?: string;
                }[];
                account?: {
                    __typename?: "Account";
                    id: string;
                    vip?: boolean;
                    displayName?: string;
                    objectSource?: import("../API").SourceOfData;
                };
            };
        }[];
        pageInfo: {
            __typename?: "PageInfo";
            endCursor?: any;
            hasNextPage?: boolean;
            hasPreviousPage?: boolean;
            startCursor?: any;
        };
    }>;
    get useList(): (options: import("../core").CacheUpdateOptions<import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CustomObjectsListQuery, import("../API").Exact<{
        filter?: import("../API").CustomObjectFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").CustomObjectsListQuery, import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>>;
        data: import("../API").CustomObjectsListQuery;
        previousData?: import("../API").CustomObjectsListQuery;
        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").CustomObjectsListQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").CustomObjectsListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>>(mapFn: (previousQueryResult: import("../API").CustomObjectsListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").CustomObjectsListQuery>, "variables">) => import("../API").CustomObjectsListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomObjectsListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>, import("../API").CustomObjectsListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").CustomObjectsListQuery>>;
        variables: import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>;
        fetchMore: <TFetchData = import("../API").CustomObjectsListQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").CustomObjectFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").CustomObjectSort | import("../API").CustomObjectSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").CustomObjectsListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").CustomObjectsListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    useListDistinct(options: any): {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").GetDistinctCustomObjectsQuery, import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>>;
        data: import("../API").GetDistinctCustomObjectsQuery;
        previousData?: import("../API").GetDistinctCustomObjectsQuery;
        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").GetDistinctCustomObjectsQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").GetDistinctCustomObjectsQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>>(mapFn: (previousQueryResult: import("../API").GetDistinctCustomObjectsQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").GetDistinctCustomObjectsQuery>, "variables">) => import("../API").GetDistinctCustomObjectsQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetDistinctCustomObjectsQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>, import("../API").GetDistinctCustomObjectsQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetDistinctCustomObjectsQuery>>;
        variables: import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>;
        fetchMore: <TFetchData = import("../API").GetDistinctCustomObjectsQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            organizationID: string;
            skip: number;
            take: number;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").GetDistinctCustomObjectsQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").GetDistinctCustomObjectsQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    listDistinctCustomObjects({ skip, take }: {
        skip: number;
        take: number;
    }): Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetDistinctCustomObjectsQuery>>;
}
