import { TextBlock } from '../../API';
import { CRUDService, ICrudService } from '../../core';
export declare class TextBlockService extends CRUDService<TextBlock> {
    protected hasOneModels: ICrudService<TextBlock>['hasOneModels'];
    get create(): (input: Partial<Record<never, import("../../../..").ModelWithId[]> & Record<import("../../core").HasOneRelationsOf<TextBlock>, import("../../../..").ModelWithId>> & Omit<import("../../API").CreateTextBlock, import("../../core").HasOneRelationsOf<TextBlock>>, options?: import("../../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../API").TextBlockCreateOneMutation, import("../../API").Exact<{
        input: import("../../API").CreateTextBlock;
    }>>>) => Promise<{
        __typename?: "TextBlock";
        id: string;
        order?: number;
        text?: string;
        updated_at: any;
        created_at: any;
    }>;
    get update(): (input: Partial<Record<never, import("../../../..").ModelWithId[]> & Record<import("../../core").HasOneRelationsOf<TextBlock>, import("../../../..").ModelWithId>> & Omit<import("../../API").UpdateTextBlock, import("../../core").HasOneRelationsOf<TextBlock>> & {
        id: string;
    }, options?: import("../../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../API").TextBlockUpdateOneMutation, import("../../API").Exact<{
        input: import("../../API").UpdateOneTextBlockInput;
    }>>>) => Promise<{
        __typename?: "TextBlock";
        id: string;
        order?: number;
        text?: string;
        updated_at: any;
        created_at: any;
    }>;
    get delete(): (id: string, options?: import("../../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../API").TextBlockDeleteOneMutation, import("../../API").Exact<{
        input: import("../../API").DeleteOneTextBlockInput;
    }>>>) => Promise<{
        __typename?: "TextBlockDeleteResponse";
        id?: string;
    }>;
    get list(): (input: import("../../API").Exact<{
        filter?: import("../../API").TextBlockFilter;
        paging?: import("../../API").CursorPaging;
        sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
    }>, options?: import("../../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../API").TextBlockListQuery, import("../../API").Exact<{
        filter?: import("../../API").TextBlockFilter;
        paging?: import("../../API").CursorPaging;
        sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
    }>>>) => Promise<{
        __typename?: "TextBlockConnection";
        totalCount: number;
        edges: {
            __typename?: "TextBlockEdge";
            cursor: any;
            node: {
                __typename?: "TextBlock";
                id: string;
                order?: number;
                text?: string;
                updated_at: any;
                created_at: any;
            };
        }[];
        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").TextBlockListQuery, import("../../API").Exact<{
        filter?: import("../../API").TextBlockFilter;
        paging?: import("../../API").CursorPaging;
        sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../../API").TextBlockListQuery, import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>>;
        data: import("../../API").TextBlockListQuery;
        previousData?: import("../../API").TextBlockListQuery;
        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").TextBlockListQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../../API").TextBlockListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>>(mapFn: (previousQueryResult: import("../../API").TextBlockListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../../API").TextBlockListQuery>, "variables">) => import("../../API").TextBlockListQuery) => void;
        refetch: (variables?: Partial<import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../../API").TextBlockListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>, import("../../API").TextBlockListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../../API").TextBlockListQuery>>;
        variables: import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>;
        fetchMore: <TFetchData = import("../../API").TextBlockListQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../../API").Exact<{
            filter?: import("../../API").TextBlockFilter;
            paging?: import("../../API").CursorPaging;
            sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../../API").TextBlockListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../../API").TextBlockListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get useLazyList(): (options?: import("../../core").CacheUpdateOptions<import("../../core").ServiceLazyQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../../API").TextBlockListQuery, import("../../API").Exact<{
        filter?: import("../../API").TextBlockFilter;
        paging?: import("../../API").CursorPaging;
        sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
    }>>>>) => import("@apollo/client").LazyQueryResultTuple<import("../../API").TextBlockListQuery, import("../../API").Exact<{
        filter?: import("../../API").TextBlockFilter;
        paging?: import("../../API").CursorPaging;
        sorting?: import("../../API").TextBlockSort | import("../../API").TextBlockSort[];
    }>>;
}
