export declare const useApiSubscription: (fn: () => Promise, isReady: boolean) => void;