import { ErrorPersistResult, SuccessfulPersistResult } from '@contember/binding'; export type PersistOnKeyProps = { /** * Callback that is called when persist is successful. */ onPersistSuccess?: (result: SuccessfulPersistResult) => void; /** * Callback that is called when an error occurs during persist. */ onPersistError?: (result: ErrorPersistResult) => void; /** * Optional function that decides whether a given KeyboardEvent * should trigger the persist action. */ isHotkey?: (event: KeyboardEvent) => boolean; }; /** * Triggers persist when the specified hotkey is pressed. * * ## Props {@link PersistOnKeyProps} * - ?isHotkey, ?onPersistError, ?onPersistSuccess * * ## Example * ```tsx * * ``` */ export declare const PersistOnKey: ({ onPersistSuccess, onPersistError, isHotkey, }: PersistOnKeyProps) => null; //# sourceMappingURL=PersistOnKey.d.ts.map