import { NotificationPreference } from '../API';
import { CRUDService, ICrudService } from '../core';
export declare class NotificationPreferencesService extends CRUDService<NotificationPreference> {
    protected hasOneModels: ICrudService<NotificationPreference>['hasOneModels'];
    get create(): (input: Partial<Record<"needs" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<NotificationPreference>, import("../../..").ModelWithId>> & Omit<import("../API").CreateOneNotificationPreferenceInput, "needs" | "posts" | import("../core").HasOneRelationsOf<NotificationPreference>>, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateOneNotificationPreferenceInput;
    }>>>) => Promise<{
        __typename?: "NotificationPreference";
        id: string;
        adminID: string;
        organizationID: string;
        emailEnabled?: boolean;
        notificationsEnabled?: boolean;
        timeFrame?: import("../API").AdminNotificationTimeFrame;
        timezone?: string;
        topicNotificationsEnabled?: boolean;
        created_at: any;
        updated_at: any;
        organization: {
            __typename?: "Organization";
            id: string;
            name: string;
            initials: string;
            organizationURL?: string;
            apiToken?: string;
            plans: {
                __typename?: "OrganizationPlan";
                id: string;
                name: import("../API").Plan;
            }[];
        };
    }>;
    get useCreate(): (options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateOneNotificationPreferenceInput;
    }>>>>) => [(payload: import("../core").InputAndRelations<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceCreateOneMutation, import("../API").Exact<{
        input: import("../API").CreateOneNotificationPreferenceInput;
    }>>, NotificationPreference>) => Promise<{
        __typename?: "NotificationPreference";
        id: string;
        adminID: string;
        organizationID: string;
        emailEnabled?: boolean;
        notificationsEnabled?: boolean;
        timeFrame?: import("../API").AdminNotificationTimeFrame;
        timezone?: string;
        topicNotificationsEnabled?: boolean;
        created_at: any;
        updated_at: any;
        organization: {
            __typename?: "Organization";
            id: string;
            name: string;
            initials: string;
            organizationURL?: string;
            apiToken?: string;
            plans: {
                __typename?: "OrganizationPlan";
                id: string;
                name: import("../API").Plan;
            }[];
        };
    }>, import("@apollo/client").MutationResult<{
        createOne: import("../../..").ModelWithId;
    }>];
    get update(): (input: Partial<Record<"needs" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<NotificationPreference>, import("../../..").ModelWithId>> & Omit<import("../API").UpdateNotificationPreference, "needs" | "posts" | import("../core").HasOneRelationsOf<NotificationPreference>> & {
        id: string;
    }, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneNotificationPreferenceInput;
    }>>>) => Promise<{
        __typename?: "NotificationPreference";
        id: string;
        adminID: string;
        organizationID: string;
        emailEnabled?: boolean;
        notificationsEnabled?: boolean;
        timeFrame?: import("../API").AdminNotificationTimeFrame;
        timezone?: string;
        topicNotificationsEnabled?: boolean;
        created_at: any;
        updated_at: any;
        organization: {
            __typename?: "Organization";
            id: string;
            name: string;
            initials: string;
            organizationURL?: string;
            apiToken?: string;
            plans: {
                __typename?: "OrganizationPlan";
                id: string;
                name: import("../API").Plan;
            }[];
        };
    }>;
    get useUpdate(): (mainOptions?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneNotificationPreferenceInput;
    }>>>>) => [({ id, ...input }: Partial<Record<"needs" | "posts", import("../../..").ModelWithId[]> & Record<import("../core").HasOneRelationsOf<NotificationPreference>, import("../../..").ModelWithId>> & import("../API").UpdateNotificationPreference & {
        id: string;
    }, options?: import("../core").CacheUpdateOptions<import("../core").ServiceMutationHookOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceUpdateOneMutation, import("../API").Exact<{
        input: import("../API").UpdateOneNotificationPreferenceInput;
    }>>>>) => Promise<Record<string, unknown>>, import("@apollo/client").MutationResult<{
        updateOne: Record<string, unknown>;
    }>];
    get list(): (input: import("../API").Exact<{
        filter?: import("../API").NotificationPreferenceFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
    }>, options?: import("../core").ServiceQueryOptions<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferencesListQuery, import("../API").Exact<{
        filter?: import("../API").NotificationPreferenceFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
    }>>>) => Promise<{
        __typename?: "NotificationPreferenceConnection";
        totalCount: number;
        edges: {
            __typename?: "NotificationPreferenceEdge";
            cursor: any;
            node: {
                __typename?: "NotificationPreference";
                id: string;
                adminID: string;
                organizationID: string;
                emailEnabled?: boolean;
                notificationsEnabled?: boolean;
                timeFrame?: import("../API").AdminNotificationTimeFrame;
                timezone?: string;
                topicNotificationsEnabled?: boolean;
                created_at: any;
                updated_at: any;
                organization: {
                    __typename?: "Organization";
                    id: string;
                    name: string;
                    initials: string;
                    organizationURL?: string;
                    apiToken?: string;
                    plans: {
                        __typename?: "OrganizationPlan";
                        id: string;
                        name: import("../API").Plan;
                    }[];
                };
            };
        }[];
        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").NotificationPreferencesListQuery, import("../API").Exact<{
        filter?: import("../API").NotificationPreferenceFilter;
        paging?: import("../API").CursorPaging;
        sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
    }>>>>) => {
        isLoading: boolean;
        isRefetching: boolean;
        hasMore: any;
        refetching: boolean;
        client: import("@apollo/client").ApolloClient<any>;
        observable: import("@apollo/client").ObservableQuery<import("../API").NotificationPreferencesListQuery, import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>>;
        data: import("../API").NotificationPreferencesListQuery;
        previousData?: import("../API").NotificationPreferencesListQuery;
        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").NotificationPreferencesListQuery, TSubscriptionVariables extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>>(options: import("@apollo/client").SubscribeToMoreOptions<import("../API").NotificationPreferencesListQuery, TSubscriptionVariables, TSubscriptionData>) => () => void;
        updateQuery: <TVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>>(mapFn: (previousQueryResult: import("../API").NotificationPreferencesListQuery, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, import("../API").NotificationPreferencesListQuery>, "variables">) => import("../API").NotificationPreferencesListQuery) => void;
        refetch: (variables?: Partial<import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>>) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").NotificationPreferencesListQuery>>;
        reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>, import("../API").NotificationPreferencesListQuery>>, newNetworkStatus?: import("@apollo/client").NetworkStatus) => Promise<import("@apollo/client").ApolloQueryResult<import("../API").NotificationPreferencesListQuery>>;
        variables: import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>;
        fetchMore: <TFetchData = import("../API").NotificationPreferencesListQuery, TFetchVars extends import("@apollo/client").OperationVariables = import("../API").Exact<{
            filter?: import("../API").NotificationPreferenceFilter;
            paging?: import("../API").CursorPaging;
            sorting?: import("../API").NotificationPreferenceSort | import("../API").NotificationPreferenceSort[];
        }>>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
            updateQuery?: (previousQueryResult: import("../API").NotificationPreferencesListQuery, options: {
                fetchMoreResult: TFetchData;
                variables: TFetchVars;
            }) => import("../API").NotificationPreferencesListQuery;
        }) => Promise<import("@apollo/client").ApolloQueryResult<TFetchData>>;
    };
    get delete(): (id: string, options?: import("../core").MutationOptionsWithoutMutation<import("@graphql-typed-document-node/core").TypedDocumentNode<import("../API").NotificationPreferenceDeleteOneMutation, import("../API").Exact<{
        input: import("../API").DeleteOneNotificationPreferenceInput;
    }>>>) => Promise<{
        __typename?: "NotificationPreferenceDeleteResponse";
        id?: string;
    }>;
}
