@trezor/connect
Version:
High-level javascript interface for Trezor hardware wallet.
15 lines • 536 B
TypeScript
import { Device } from './Device';
import { DeviceState } from '../types/device';
export interface IStateStorage {
saveState(device: Device, state: DeviceState): void;
loadState(device: Device): DeviceState | undefined;
}
export declare class WebextensionStateStorage implements IStateStorage {
origin: string;
constructor(origin: string);
loadState(device: Device): {
sessionId: string;
} | undefined;
saveState(device: Device, state: DeviceState): void;
}
//# sourceMappingURL=StateStorage.d.ts.map