import { type KeyboardEvent } from 'react';
export type SubmitOnEnterElement = HTMLTextAreaElement | HTMLInputElement;
export type UseSubmitOnEnterOptions = {
    enabled?: boolean;
};
export declare function useSubmitOnEnter(options?: UseSubmitOnEnterOptions): (event: KeyboardEvent<SubmitOnEnterElement>) => void;
//# sourceMappingURL=useSubmitOnEnter.d.ts.map