import React from 'react'; import * as _crossbell_indexer from '@crossbell/indexer'; import { ParsedNotification } from '@crossbell/indexer'; import * as _tanstack_query_core from '@tanstack/query-core'; import { NotificationTypeKey } from 'crossbell'; type NotificationFilter = (notification: ParsedNotification) => boolean; declare function useNotifications(options?: { types?: NotificationTypeKey[]; filter?: NotificationFilter; }): { error: unknown; isError: true; isLoading: false; isLoadingError: true; isRefetchError: false; isSuccess: false; status: "error"; fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; hasNextPage?: boolean | undefined; hasPreviousPage?: boolean | undefined; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: unknown; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: (options?: (_tanstack_query_core.RefetchOptions & _tanstack_query_core.RefetchQueryFilters) | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }>, unknown>>; remove: () => void; fetchStatus: _tanstack_query_core.FetchStatus; notifications: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; total: number; isAllRead: boolean; unreadCount: number; markAllRead: () => void; } | { error: null; isError: false; isLoading: true; isLoadingError: false; isRefetchError: false; isSuccess: false; status: "loading"; fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; hasNextPage?: boolean | undefined; hasPreviousPage?: boolean | undefined; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: unknown; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: (options?: (_tanstack_query_core.RefetchOptions & _tanstack_query_core.RefetchQueryFilters) | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }>, unknown>>; remove: () => void; fetchStatus: _tanstack_query_core.FetchStatus; notifications: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; total: number; isAllRead: boolean; unreadCount: number; markAllRead: () => void; } | { error: unknown; isError: true; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; status: "error"; fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; hasNextPage?: boolean | undefined; hasPreviousPage?: boolean | undefined; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: unknown; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: (options?: (_tanstack_query_core.RefetchOptions & _tanstack_query_core.RefetchQueryFilters) | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }>, unknown>>; remove: () => void; fetchStatus: _tanstack_query_core.FetchStatus; notifications: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; total: number; isAllRead: boolean; unreadCount: number; markAllRead: () => void; } | { error: null; isError: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; status: "success"; fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }, unknown>>; hasNextPage?: boolean | undefined; hasPreviousPage?: boolean | undefined; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: unknown; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isPlaceholderData: boolean; isPreviousData: boolean; isRefetching: boolean; isStale: boolean; refetch: (options?: (_tanstack_query_core.RefetchOptions & _tanstack_query_core.RefetchQueryFilters) | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<{ list: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; cursor: string | null; count: number; }>, unknown>>; remove: () => void; fetchStatus: _tanstack_query_core.FetchStatus; notifications: (_crossbell_indexer.LikeNoteNotification | _crossbell_indexer.CommentNoteNotification | _crossbell_indexer.MintNoteNotification | _crossbell_indexer.FollowCharacterNotification | _crossbell_indexer.TipNoteNotification | _crossbell_indexer.TipCharacterNotification | _crossbell_indexer.MentionNotification)[]; total: number; isAllRead: boolean; unreadCount: number; markAllRead: () => void; }; declare function useShowNotificationModal(): () => void; type NotificationModalColorScheme = { text?: string; textSecondary?: string; closeBtn?: string; border?: string; background?: string; indicator?: string; transactionHash?: string; bellPrimary?: string; bellSecondary?: string; }; type NotificationModalProps = { colorScheme?: NotificationModalColorScheme; filter?: NotificationFilter; }; declare function NotificationModal({ colorScheme, filter, }: NotificationModalProps): React.JSX.Element; export { type NotificationFilter, NotificationModal, type NotificationModalColorScheme, type NotificationModalProps, useNotifications, useShowNotificationModal };