import { ITouchableProps } from '../types'; /** * Checks if the provided props object contains any touch event handlers. * * This function verifies if the input object is a valid object and checks * if it contains any of the defined touchable event handlers. It returns * `true` if at least one handler is present, otherwise it returns `false`. * * @param {ITouchableProps} props - An object that may contain touch event handlers. * @returns {boolean} - Returns `true` if any touch event handler is defined; otherwise, `false`. * * @example * const handlers = { * onPress: (event) => { console.log('Pressed!'); }, * }; * const hasHandlers = hasTouchHandler(handlers); // Returns true * * const noHandlers = {}; * const hasNoHandlers = hasTouchHandler(noHandlers); // Returns false * * const invalidInput = null; * const isInvalid = hasTouchHandler(invalidInput); // Returns false */ export declare function hasTouchHandler(props: ITouchableProps): boolean; /** * Extracts touch event handlers from the provided props object. * * The `pickTouchableProps` function takes an object containing potential * touch event handlers and returns a new object with only the handlers * that are defined for the touchable events. If no valid handlers are found, * the function returns an empty object. * * @param {@link ITouchableProps} props - An object that may contain touch event handlers. * @returns {Omit & { touchableProps?: ITouchableProps }} An object with the valid touch event handlers, or an empty object if none are found. * * @example * // Example usage of pickTouchableProps * const props = { * onPress: () => console.log('Pressed!'), * onLongPress: () => console.log('Long Pressed!'), * // onPressIn and onPressOut are not defined * }; * * const handlers = pickTouchableProps(props); * console.log(handlers); * // Output: { onPress: [Function], onLongPress: [Function] } * * const emptyHandlers = pickTouchableProps({}); * console.log(emptyHandlers); * // Output: {} */ export declare function pickTouchableProps(props: T): Omit & { touchableProps?: ITouchableProps; };