import type { InputDisposer, InputManagerRaw, InputStateRaw } from './types.ts'; /** * Subscribes a state to every manager signal and returns a disposer (TS * `connectInputStateToInputManager`). Edge sets record transitions, so a held key's auto-repeat * does not count as a new press and a press plus release in one frame both survive. */ export declare function connectInputStateToInputManager(state: InputStateRaw, manager: InputManagerRaw): InputDisposer; /** * Allocates an empty held-state snapshot (TS `createInputState`). */ export declare function createInputState(): InputStateRaw; /** * Clears the four per-frame edge sets (TS `endInputStateFrame`). */ export declare function endInputStateFrame(state: InputStateRaw): void; /** * Returns the current gamepad axis value, or 0 when not recorded (TS `getInputGamepadAxis`). */ export declare function getInputGamepadAxis(state: InputStateRaw, gamepad: number, axis: number): number; /** * Gives a state under construction empty maps and sets (TS `initializeInputState`). */ export declare function initializeInputState(out: InputStateRaw): void; /** * Returns whether the gamepad button is held (TS `isInputGamepadButtonDown`). */ export declare function isInputGamepadButtonDown(state: InputStateRaw, gamepad: number, button: number): boolean; /** * Returns whether the key code is held (TS `isInputKeyDown`). */ export declare function isInputKeyDown(state: InputStateRaw, keyCode: number): boolean; /** * Returns whether the pointer button is held for that pointer (TS `isInputPointerButtonDown`). */ export declare function isInputPointerButtonDown(state: InputStateRaw, pointerId: number, button: number): boolean; /** * Returns whether the gamepad button transitioned up -> down this frame (TS * `wasInputGamepadButtonPressed`). */ export declare function wasInputGamepadButtonPressed(state: InputStateRaw, gamepad: number, button: number): boolean; /** * Returns whether the gamepad button transitioned down -> up this frame (TS * `wasInputGamepadButtonReleased`). */ export declare function wasInputGamepadButtonReleased(state: InputStateRaw, gamepad: number, button: number): boolean; /** * Returns whether the key transitioned up -> down this frame (TS `wasInputKeyPressed`). */ export declare function wasInputKeyPressed(state: InputStateRaw, keyCode: number): boolean; /** * Returns whether the key transitioned down -> up this frame (TS `wasInputKeyReleased`). */ export declare function wasInputKeyReleased(state: InputStateRaw, keyCode: number): boolean; //# sourceMappingURL=inputState.d.ts.map