import type { TSuccessState } from "../../../query/types/index.js"; import type { TDataState } from "./machine-helpers.js"; import { MachineRefreshError } from "./MachineRefreshError.js"; import { MachineRefreshing } from "./MachineRefreshing.js"; import { MachineWithData } from "./MachineWithData.js"; export declare class MachineSuccess extends MachineWithData { readonly status: "success"; readonly state: TSuccessState; constructor(state: TSuccessState); protected withState(state: TDataState): this; /** success → success (subsequent stream emission; replays patches on new data) */ next(data: TData): MachineSuccess; /** success → refresh-error (a streaming query failed after delivering data; data is kept) */ fail(error: unknown): MachineRefreshError; /** success → refreshing */ refresh(): MachineRefreshing; }