export type TStatus = 'loading' | 'errored' | 'ready'; export type TProps = { loading: boolean; errored: boolean; onStatus?: (status: TStatus) => void; }; export declare const useHandleStatus: ({ loading, onStatus, errored }: TProps) => void;