/** Adapted from {@link https://github.com/effector/patronum/blob/main/src/status/index.ts} */ import { type Effect, type Store, type StoreWritable } from "effector"; export type OperationStatus = "initial" | "pending" | "done" | "fail"; export declare function status(effect: Effect, config: { name: string; sid: string; }): StoreWritable; export interface ViewStatus { /** Has this operation ever fetched? */ $idle: Store; /** Is this operation fetching right now? */ $pending: Store; /** Has fetching this operation failed? */ $failed: Store; /** Has fetching this operation succeeded? */ $succeeded: Store; /** Has fetching this operation finished? */ $finished: Store; } export declare function viewStatus($status: Store): ViewStatus;