/** Safe string for logs / sendError from thrown values */
export declare function errorMessage(err: unknown): string;
/**
 * Same extraction logic as the legacy `gateway.connect` catch (axios + Node err shapes).
 */
export declare function parseGatewayConnectFailure(raw: unknown): {
    errorMessage: string;
    errorCode: string;
};
//# sourceMappingURL=tui-handlers-errors.d.ts.map