export interface Initialized { type: "Initialized"; } export interface Pending { type: "Pending"; } export interface Failure { type: "Failure"; error: E; } export interface Success { type: "Success"; result: S; } export declare type RemoteData = Initialized | Pending | Failure | Success; export declare const initialize: () => RemoteData; export declare const pending: () => RemoteData; export declare const succeed: (result: S) => RemoteData; export declare const fail: (error: E) => RemoteData; export declare const fold: (onInitialized: () => R, onPending: () => R, onFailure: (error: E) => R, onSuccess: (result: S) => R, remote: RemoteData) => R; //# sourceMappingURL=RemoteData.d.ts.map