Press {buttonLabels.A} to fire
; * } * ``` */ export declare const useGamepadsContext: () => UseGamepadsReturn; /** The props injected by `withGamepads`. */ export type WithGamepadsProps = UseGamepadsReturn; /** * Higher-order component that injects gamepad state from the nearest * `GamepadsProvider` as props. Useful for class components that cannot * call hooks directly. * * ```tsx * interface Props extends WithGamepadsProps { * playerName: string; * } * * class PlayerHUD extends React.Component{playerName}: press {buttonLabels.A} to jump
; * } * } * * export default withGamepads(PlayerHUD); * * // Usage (GamepadsProvider must be an ancestor): * //(Component: React.ComponentType
): React.FC