import { RecordOwner } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class RecordOwnerService extends CRUDService<RecordOwner> {
    protected hasOneModels: ICrudService<RecordOwner>['hasOneModels'];
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
    }>, import("../API").GetRecordOwnerQuery>, "query">) => Promise<{
        __typename?: "RecordOwner";
        accountID?: string;
        isDefault?: boolean;
        opportunityID?: string;
        adminID?: string;
        id: string;
        organizationID: string;
        role?: string;
        account?: {
            __typename?: "Account";
            id: string;
            displayName?: string;
        };
        admin?: {
            __typename?: "Admin";
            avatar?: string;
            firstName?: string;
            lastName?: string;
            email: string;
            id: string;
        };
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").GetRecordOwnerQuery, 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").GetRecordOwnerQuery, import("../API").Exact<{
            id: string;
        }>>;
        data: import("../API").GetRecordOwnerQuery;
        previousData?: import("../API").GetRecordOwnerQuery;
        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").GetRecordOwnerQuery, TSubscriptionVariables = import("../API").Exact<{
            id: string;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").GetRecordOwnerQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars = import("../API").Exact<{
            id: string;
        }>>(mapFn: (previousQueryResult: import("../API").GetRecordOwnerQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").GetRecordOwnerQuery>, "variables">) => import("../API").GetRecordOwnerQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetRecordOwnerQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
        }>, import("../API").GetRecordOwnerQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetRecordOwnerQuery>>;
        fetchMore: <TFetchData = import("../API").GetRecordOwnerQuery, TFetchVars = import("../API").Exact<{
            id: string;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").GetRecordOwnerQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").GetRecordOwnerQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").RecordOwnerFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").RecordOwnersListQuery, import("../API").Exact<{
        filter?: import("../API").RecordOwnerFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
    }>>>) => Promise<{
        __typename?: "RecordOwnerConnection";
        totalCount: number;
        edges: {
            __typename?: "RecordOwnerEdge";
            cursor: any;
            node: {
                __typename?: "RecordOwner";
                accountID?: string;
                isDefault?: boolean;
                opportunityID?: string;
                adminID?: string;
                id: string;
                organizationID: string;
                role?: string;
                account?: {
                    __typename?: "Account";
                    id: string;
                    displayName?: string;
                };
                admin?: {
                    __typename?: "Admin";
                    avatar?: string;
                    firstName?: string;
                    lastName?: string;
                    email: string;
                    id: string;
                };
            };
        }[];
        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").RecordOwnersListQuery, import("../API").Exact<{
        filter?: import("../API").RecordOwnerFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").RecordOwnersListQuery, import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>>;
        data: import("../API").RecordOwnersListQuery;
        previousData?: import("../API").RecordOwnersListQuery;
        error?: import("@apollo/client").ApolloError;
        loading: boolean;
        networkStatus: import("@apollo/client").NetworkStatus;
        called: boolean;
        variables: import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>;
        startPolling: (pollInterval: number) => void;
        stopPolling: () => void;
        subscribeToMore: <TSubscriptionData = import("../API").RecordOwnersListQuery, TSubscriptionVariables = import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").RecordOwnersListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars = import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>>(mapFn: (previousQueryResult: import("../API").RecordOwnersListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").RecordOwnersListQuery>, "variables">) => import("../API").RecordOwnersListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").RecordOwnersListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>, import("../API").RecordOwnersListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").RecordOwnersListQuery>>;
        fetchMore: <TFetchData = import("../API").RecordOwnersListQuery, TFetchVars = import("../API").Exact<{
            filter?: import("../API").RecordOwnerFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").RecordOwnerSort | import("../API").RecordOwnerSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").RecordOwnersListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").RecordOwnersListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get create(): (input: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<RecordOwner>, import("../../..").ModelWithId>> & Omit<import("../API").CreateRecordOwner, import("../core").HasOneRelationsOf<RecordOwner>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").CreateRecordOwner;
    }>>>) => Promise<{
        __typename?: "RecordOwner";
        accountID?: string;
        isDefault?: boolean;
        opportunityID?: string;
        adminID?: string;
        id: string;
        organizationID: string;
        role?: string;
        account?: {
            __typename?: "Account";
            id: string;
            displayName?: string;
        };
        admin?: {
            __typename?: "Admin";
            avatar?: string;
            firstName?: string;
            lastName?: string;
            email: string;
            id: string;
        };
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").CreateRecordOwner;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").CreateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").CreateRecordOwner;
    }>>, RecordOwner>) => Promise<{
        __typename?: "RecordOwner";
        accountID?: string;
        isDefault?: boolean;
        opportunityID?: string;
        adminID?: string;
        id: string;
        organizationID: string;
        role?: string;
        account?: {
            __typename?: "Account";
            id: string;
            displayName?: string;
        };
        admin?: {
            __typename?: "Admin";
            avatar?: string;
            firstName?: string;
            lastName?: string;
            email: string;
            id: string;
        };
    }>, import("@apollo/client").MutationResult<any>];
    get update(): (input: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<RecordOwner>, import("../../..").ModelWithId>> & Omit<import("../API").UpdateRecordOwner, import("../core").HasOneRelationsOf<RecordOwner>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").UpdateOneRecordOwnerInput;
    }>>>) => Promise<{
        __typename?: "RecordOwner";
        accountID?: string;
        isDefault?: boolean;
        opportunityID?: string;
        adminID?: string;
        id: string;
        organizationID: string;
        role?: string;
        account?: {
            __typename?: "Account";
            id: string;
            displayName?: string;
        };
        admin?: {
            __typename?: "Admin";
            avatar?: string;
            firstName?: string;
            lastName?: string;
            email: string;
            id: string;
        };
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").UpdateOneRecordOwnerInput;
    }>>>>) => [({ id, ...input }: Partial<Record<never, import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<RecordOwner>, import("../../..").ModelWithId>> & import("../API").UpdateRecordOwner & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").UpdateOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").UpdateOneRecordOwnerInput;
    }>>>>) => Promise<any>, import("@apollo/client").MutationResult<any>];
    get delete(): (id: string, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").DeleteOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").DeleteOneRecordOwnerInput;
    }>>>) => Promise<{
        __typename?: "RecordOwnerDeleteResponse";
        id?: string;
    }>;
    get useDelete(): (options?: import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").DeleteOneRecordOwnerMutation, import("../API").Exact<{
        input: import("../API").DeleteOneRecordOwnerInput;
    }>>>) => [(id?: string) => Promise<{
        __typename?: "RecordOwnerDeleteResponse";
        id?: string;
    }>, import("@apollo/client").MutationResult<import("../API").DeleteOneRecordOwnerMutation>];
}
