@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
26 lines • 812 B
TypeScript
import { Observable } from "rxjs";
export type TroubleshootStatus = {
title: string;
technicalDescription: string;
status: "success" | "error" | "loading";
error?: string;
translationKey: string;
};
type Troubleshoot = {
title: string;
technicalDescription: string;
job: Promise<unknown>;
translationKey: string;
};
export declare function troubleshoot(): Troubleshoot[];
type TroubleshootEvent = {
type: "init";
all: TroubleshootStatus[];
} | {
type: "change";
status: TroubleshootStatus;
};
export declare function troubleshootOverObservable(): Observable<TroubleshootEvent>;
export declare function troubleshootOverObservableReducer(state: TroubleshootStatus[], event: TroubleshootEvent): TroubleshootStatus[];
export {};
//# sourceMappingURL=index.d.ts.map