export declare const useCommitPress: (callback?: (event: KeyboardEvent) => void, prevent?: boolean) => void;