, condition?: boolean | (() => boolean)): void;
/**
* Hook to track subscription state
*
* @param key - Cache key
* @returns Subscription state
*
* @example
* ```typescript
* function DataComponent() {
* const { data, error, isValidating, isSubscribed } = useSubscriptionState(
* '/api/data'
* );
*
* return (
*
* {isSubscribed && Live}
* {isValidating && }
* {error && }
* {data && }
*
* );
* }
* ```
*/
export declare function useSubscriptionState, Constraints = Record, TError = ApiError>(key: string | null): {
data: T | undefined;
error: TError | undefined;
isValidating: boolean;
isLoading: boolean;
isSubscribed: boolean;
};
//# sourceMappingURL=react.d.ts.map