import { Feed } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class FeedService extends CRUDService<Feed> {
    protected hasOneModels: ICrudService<Feed>['hasOneModels'];
    validateName: (name: string) => Promise<boolean>;
    get create(): (input: Partial<Record<"menuButtons" | "statusOptions" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Feed>, import("../../..").ModelWithId>> & Omit<import("../API").CreateFeed, "menuButtons" | "statusOptions" | "posts" | import("../core").HasOneRelationsOf<Feed>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateFeed;
    }>>>) => Promise<{
        __typename?: "Feed";
        id: string;
        canAddPlusOnes?: boolean;
        showPostAuthor?: boolean;
        name: string;
        type?: import("../API").FeedType;
        headerText?: string;
        isCustomerFacing?: boolean;
        hasImportanceAndRisk?: boolean;
        isImportanceAndRiskRequired?: boolean;
        dashboardOrder?: number;
        organizationID: string;
        pinnedPostID?: string;
        colorTheme?: import("../API").ThemeColorOption;
        description?: string;
        postOrder?: import("../API").PostOrder;
        portalOrder?: number;
        defaultShownAuthor?: import("../API").ShownAuthor;
        defaultResponseType?: import("../API").ResponseType;
        defaultComment?: import("../API").CommentVisibility;
        created_at: any;
        updated_at: any;
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateFeed;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateFeed;
    }>>, Feed>) => Promise<{
        __typename?: "Feed";
        id: string;
        canAddPlusOnes?: boolean;
        showPostAuthor?: boolean;
        name: string;
        type?: import("../API").FeedType;
        headerText?: string;
        isCustomerFacing?: boolean;
        hasImportanceAndRisk?: boolean;
        isImportanceAndRiskRequired?: boolean;
        dashboardOrder?: number;
        organizationID: string;
        pinnedPostID?: string;
        colorTheme?: import("../API").ThemeColorOption;
        description?: string;
        postOrder?: import("../API").PostOrder;
        portalOrder?: number;
        defaultShownAuthor?: import("../API").ShownAuthor;
        defaultResponseType?: import("../API").ResponseType;
        defaultComment?: import("../API").CommentVisibility;
        created_at: any;
        updated_at: any;
    }>, import("@apollo/client").MutationResult<{
        createOne: import("../../..").ModelWithId;
    }>];
    get update(): (input: Partial<Record<"menuButtons" | "statusOptions" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Feed>, import("../../..").ModelWithId>> & Omit<import("../API").UpdateFeed, "menuButtons" | "statusOptions" | "posts" | import("../core").HasOneRelationsOf<Feed>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFeedInput;
    }>>>) => Promise<{
        __typename?: "Feed";
        id: string;
        canAddPlusOnes?: boolean;
        showPostAuthor?: boolean;
        name: string;
        type?: import("../API").FeedType;
        headerText?: string;
        isCustomerFacing?: boolean;
        hasImportanceAndRisk?: boolean;
        isImportanceAndRiskRequired?: boolean;
        dashboardOrder?: number;
        organizationID: string;
        pinnedPostID?: string;
        colorTheme?: import("../API").ThemeColorOption;
        description?: string;
        postOrder?: import("../API").PostOrder;
        portalOrder?: number;
        defaultShownAuthor?: import("../API").ShownAuthor;
        defaultResponseType?: import("../API").ResponseType;
        defaultComment?: import("../API").CommentVisibility;
        created_at: any;
        updated_at: any;
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFeedInput;
    }>>>>) => [({ id, ...input }: Partial<Record<"menuButtons" | "statusOptions" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<Feed>, import("../../..").ModelWithId>> & import("../API").UpdateFeed & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneFeedInput;
    }>>>>) => 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").FeedDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneFeedInput;
    }>>>) => Promise<{
        __typename?: "FeedDeleteResponse";
        id?: string;
    }>;
    get useDelete(): (options?: import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneFeedInput;
    }>>>) => [(id?: string) => Promise<{
        __typename?: "FeedDeleteResponse";
        id?: string;
    }>, import("@apollo/client").MutationResult<import("../API").FeedDeleteOneMutation>];
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").FeedFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").FeedSort | import("../API").FeedSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").FeedListQuery, import("../API").Exact<{
        filter?: import("../API").FeedFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").FeedSort | import("../API").FeedSort[];
    }>>>) => Promise<{
        __typename?: "FeedConnection";
        totalCount: number;
        edges: {
            __typename?: "FeedEdge";
            node: {
                __typename?: "Feed";
                id: string;
                canAddPlusOnes?: boolean;
                showPostAuthor?: boolean;
                name: string;
                type?: import("../API").FeedType;
                headerText?: string;
                isCustomerFacing?: boolean;
                hasImportanceAndRisk?: boolean;
                isImportanceAndRiskRequired?: boolean;
                dashboardOrder?: number;
                organizationID: string;
                pinnedPostID?: string;
                colorTheme?: import("../API").ThemeColorOption;
                description?: string;
                postOrder?: import("../API").PostOrder;
                portalOrder?: number;
                defaultShownAuthor?: import("../API").ShownAuthor;
                defaultResponseType?: import("../API").ResponseType;
                defaultComment?: import("../API").CommentVisibility;
                created_at: any;
                updated_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").FeedListQuery, import("../API").Exact<{
        filter?: import("../API").FeedFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").FeedSort | import("../API").FeedSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").FeedListQuery, import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>>;
        data: import("../API").FeedListQuery;
        previousData?: import("../API").FeedListQuery;
        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").FeedListQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").FeedListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>>(mapFn: (previousQueryResult: import("../API").FeedListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").FeedListQuery>, "variables">) => import("../API").FeedListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").FeedListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>, import("../API").FeedListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").FeedListQuery>>;
        variables: import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>;
        fetchMore: <TFetchData = import("../API").FeedListQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").FeedFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").FeedSort | import("../API").FeedSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").FeedListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").FeedListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get get(): (id: string, options?: Omit<import("@apollo/client").QueryOptions<import("../API").Exact<{
        id: string;
    }>, import("../API").GetFeedQuery>, "query">) => Promise<{
        __typename?: "Feed";
        id: string;
        canAddPlusOnes?: boolean;
        showPostAuthor?: boolean;
        name: string;
        type?: import("../API").FeedType;
        headerText?: string;
        isCustomerFacing?: boolean;
        hasImportanceAndRisk?: boolean;
        isImportanceAndRiskRequired?: boolean;
        dashboardOrder?: number;
        organizationID: string;
        pinnedPostID?: string;
        colorTheme?: import("../API").ThemeColorOption;
        description?: string;
        postOrder?: import("../API").PostOrder;
        portalOrder?: number;
        defaultShownAuthor?: import("../API").ShownAuthor;
        defaultResponseType?: import("../API").ResponseType;
        defaultComment?: import("../API").CommentVisibility;
        created_at: any;
        updated_at: any;
    }>;
    get useGet(): (options: import("../core").ServiceQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").GetFeedQuery, 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").GetFeedQuery, import("../API").Exact<{
            id: string;
        }>>;
        data: import("../API").GetFeedQuery;
        previousData?: import("../API").GetFeedQuery;
        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").GetFeedQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").GetFeedQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(mapFn: (previousQueryResult: import("../API").GetFeedQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").GetFeedQuery>, "variables">) => import("../API").GetFeedQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            id: string;
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetFeedQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            id: string;
        }>, import("../API").GetFeedQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").GetFeedQuery>>;
        variables: import("../API").Exact<{
            id: string;
        }>;
        fetchMore: <TFetchData = import("../API").GetFeedQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            id: string;
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").GetFeedQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").GetFeedQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get useGetLazy(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceLazyQueryHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").GetFeedQuery, import("../API").Exact<{
        id: string;
    }>>>>) => import("@apollo/client").LazyQueryResultTuple<import("../API").GetFeedQuery, import("../API").Exact<{
        id: string;
    }>>;
}
