import type { TRefreshingState } from "../../../query/types/index.js"; import type { TDataState } from "./machine-helpers.js"; import { MachineRefreshError } from "./MachineRefreshError.js"; import { MachineSuccess } from "./MachineSuccess.js"; import { MachineWithData } from "./MachineWithData.js"; export declare class MachineRefreshing extends MachineWithData { readonly status: "refreshing"; readonly state: TRefreshingState; constructor(state: TRefreshingState); protected withState(state: TDataState): this; /** refreshing → success (replays patches on new data) */ rebase(data: TData): MachineSuccess; /** refreshing → refresh-error */ fail(error: unknown): MachineRefreshError; }