declare type RequestStateProps = { isEmpty?: boolean; isFetching?: boolean; isRefetching?: boolean; isSuccess?: boolean; isError?: boolean; }; export default class RequestState { val: any; isEmpty: boolean | null | undefined; isFetching: boolean | null | undefined; isRefetching: boolean | null | undefined; isSuccess: boolean | null | undefined; isError: boolean | null | undefined; constructor(value: any, props: RequestStateProps); value(defaultValue?: any): any; static empty(value?: any): RequestState; emptyFlatMap(fn: (arg0: any) => RequestState): RequestState; emptyMap(fn: (arg0: any) => any): RequestState; toEmpty(): RequestState; static fetching(value?: any): RequestState; fetchingFlatMap(fn: (arg0: any) => RequestState): RequestState; fetchingMap(fn: (arg0: any) => any): RequestState; toFetching(): RequestState; static refetching(value?: any): RequestState; refetchingFlatMap(fn: (arg0: any) => RequestState): RequestState; refetchingMap(fn: (arg0: any) => any): RequestState; toRefetching(): RequestState; static success(value?: any): RequestState; successFlatMap(fn: (arg0: any) => RequestState): RequestState; successMap(fn: (arg0: any) => any): RequestState; toSuccess(): RequestState; static error(value?: any): RequestState; errorFlatMap(fn: (arg0: any) => RequestState): RequestState; errorMap(fn: (arg0: any) => any): RequestState; toError(): RequestState; } export {};