webssh2-server
Version:
A Websocket to SSH2 gateway using xterm.js, socket.io, ssh2
14 lines (13 loc) • 471 B
TypeScript
/**
* Root session reducer combining all sub-reducers
*/
import type { SessionState } from '../types.js';
import type { SessionAction } from '../actions.js';
/**
* Main session reducer - combines all sub-reducers
*/
export declare const sessionReducer: (state: SessionState, action: SessionAction) => SessionState;
/**
* Helper to check if state actually changed
*/
export declare const hasStateChanged: (oldState: SessionState, newState: SessionState) => boolean;