@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
18 lines • 731 B
TypeScript
import type { Operation } from "@ledgerhq/types-live";
import type { SendFlowOperationResult } from "../types";
type UseSendFlowOperationStateResult = Readonly<{
state: SendFlowOperationResult;
actions: Readonly<{
dispatchSetOperation: (operation: Operation) => void;
dispatchSetError: (error: Error) => void;
dispatchSetSigned: () => void;
dispatchReset: () => void;
}>;
}>;
/**
* Pure operation state management without platform-specific side effects
* Desktop and mobile wrap this with their own side-effects (Redux dispatch)
*/
export declare function useSendFlowOperationState(): UseSendFlowOperationStateResult;
export {};
//# sourceMappingURL=useSendFlowOperationState.d.ts.map