import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useContext } from 'react';
import { defaultKeyMatchers } from '../key/keyMatchers.js';
export const KeyMatchersContext = createContext(defaultKeyMatchers);
export const KeyMatchersProvider = ({ children, value, }) => (_jsx(KeyMatchersContext.Provider, { value: value, children: children }));
/**
 * Hook to retrieve the currently active key matchers.
 * Defaults to defaultKeyMatchers if no provider is present, allowing tests to run without explicit wrappers.
 */
export function useKeyMatchers() {
    return useContext(KeyMatchersContext);
}
//# sourceMappingURL=useKeyMatchers.js.map