import { InfiniteData } from '../../../../../../.external/lib/@tanstack/react-query'; import { StreamingPage, UseStreamingDataParams } from '../types'; export declare const useStreamingData: (params: UseStreamingDataParams) => { streamingPages: (StreamingPage | null)[]; activeDataQuery: import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverRefetchErrorResult | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverSuccessResult | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverLoadingErrorResult | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPendingResult | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPlaceholderResult | { data: StreamingPage | null; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: true; isSuccess: false; isPlaceholderData: false; status: "error"; fetchNextPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchNextPageOptions) => Promise, Error>>; fetchPreviousPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchPreviousPageOptions) => Promise, Error>>; hasNextPage: boolean; hasPreviousPage: boolean; isFetchNextPageError: boolean; isFetchingNextPage: boolean; isFetchPreviousPageError: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import('../../../../../../.external/lib/@tanstack/react-query').RefetchOptions) => Promise, Error>>; fetchStatus: import('../../../../../../.external/lib/@tanstack/react-query').FetchStatus; promise: Promise>; } | { data: StreamingPage | null; error: null; isError: false; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isFetchNextPageError: false; isFetchPreviousPageError: false; isSuccess: true; isPlaceholderData: false; status: "success"; fetchNextPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchNextPageOptions) => Promise, Error>>; fetchPreviousPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchPreviousPageOptions) => Promise, Error>>; hasNextPage: boolean; hasPreviousPage: boolean; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import('../../../../../../.external/lib/@tanstack/react-query').RefetchOptions) => Promise, Error>>; fetchStatus: import('../../../../../../.external/lib/@tanstack/react-query').FetchStatus; promise: Promise>; } | { data: StreamingPage | null; error: Error; isError: true; isPending: false; isLoading: false; isLoadingError: true; isRefetchError: false; isFetchNextPageError: false; isFetchPreviousPageError: false; isSuccess: false; isPlaceholderData: false; status: "error"; fetchNextPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchNextPageOptions) => Promise, Error>>; fetchPreviousPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchPreviousPageOptions) => Promise, Error>>; hasNextPage: boolean; hasPreviousPage: boolean; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import('../../../../../../.external/lib/@tanstack/react-query').RefetchOptions) => Promise, Error>>; fetchStatus: import('../../../../../../.external/lib/@tanstack/react-query').FetchStatus; promise: Promise>; } | { data: StreamingPage | null; error: null; isError: false; isPending: true; isLoadingError: false; isRefetchError: false; isFetchNextPageError: false; isFetchPreviousPageError: false; isSuccess: false; isPlaceholderData: false; status: "pending"; fetchNextPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchNextPageOptions) => Promise, Error>>; fetchPreviousPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchPreviousPageOptions) => Promise, Error>>; hasNextPage: boolean; hasPreviousPage: boolean; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isLoading: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import('../../../../../../.external/lib/@tanstack/react-query').RefetchOptions) => Promise, Error>>; fetchStatus: import('../../../../../../.external/lib/@tanstack/react-query').FetchStatus; promise: Promise>; } | { data: StreamingPage | null; isError: false; error: null; isPending: false; isLoading: false; isLoadingError: false; isRefetchError: false; isSuccess: true; isPlaceholderData: true; isFetchNextPageError: false; isFetchPreviousPageError: false; status: "success"; fetchNextPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchNextPageOptions) => Promise, Error>>; fetchPreviousPage: (options?: import('../../../../../../.external/lib/@tanstack/react-query').FetchPreviousPageOptions) => Promise, Error>>; hasNextPage: boolean; hasPreviousPage: boolean; isFetchingNextPage: boolean; isFetchingPreviousPage: boolean; dataUpdatedAt: number; errorUpdatedAt: number; failureCount: number; failureReason: Error | null; errorUpdateCount: number; isFetched: boolean; isFetchedAfterMount: boolean; isFetching: boolean; isInitialLoading: boolean; isPaused: boolean; isRefetching: boolean; isStale: boolean; isEnabled: boolean; refetch: (options?: import('../../../../../../.external/lib/@tanstack/react-query').RefetchOptions) => Promise, Error>>; fetchStatus: import('../../../../../../.external/lib/@tanstack/react-query').FetchStatus; promise: Promise>; }; fetchStreamingPage: () => Promise, Error>> | null; resetStreamingPages: ({ refetch }?: { refetch?: boolean; }) => Promise, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverSuccessResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverLoadingErrorResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPendingResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPlaceholderResult, Error> | null>; streaming: { data: Record; isEnd: boolean; fetch: () => Promise, Error>> | null; reset: ({ refetch }?: { refetch?: boolean; }) => Promise, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverSuccessResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverLoadingErrorResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPendingResult, Error> | import('../../../../../../.external/lib/@tanstack/react-query').QueryObserverPlaceholderResult, Error> | null>; } | undefined; };