function resolveHotkeyAlias( hotkeys ) {
	const aliases = [];
	while ( typeof hotkeys === "string" ) {
		if ( aliases.includes( hotkeys ) ) { return; }
		aliases.push( hotkeys );

		const sep = hotkeys.indexOf( "." );
		const namespace = hotkeys.substring( 0, sep );
		const action = hotkeys.slice( sep + 1 );

		if ( !hasOwnProperty.call( hotkeysConfig, namespace ) ) { return; }
		const { actions } = hotkeysConfig[ namespace ];
		if ( !hasOwnProperty.call( actions, action ) ) { return; }

		hotkeys = actions[ action ];
	}

	return [ hotkeys.slice(), aliases.pop() ];
}
@param {(Hotkey[]|string)} hotkeys
@returns {(undefined|[Hotkey[],(string|undefined)])}