export declare function useOnEsc({ condition, action }: { condition?: boolean; action: Function; }): void;