import type { GestureResponderEvent, NativeSyntheticEvent } from 'react-native'; /** * The native event associated with a change. In React Native there is no DOM * event hierarchy; press interactions produce `GestureResponderEvent`s and * everything else is a `NativeSyntheticEvent`. Events may be absent for * imperative or initial state changes. */ export type ZestNativeEvent = GestureResponderEvent | NativeSyntheticEvent | undefined; type ZestChangeEventDetail = { /** * The reason for the event. */ reason: Reason; /** * The native event associated with the custom event, if any. */ event: ZestNativeEvent; /** * Cancels Zest from handling the event. */ cancel: () => void; /** * Allows the event to propagate in cases where Zest will stop the propagation. */ allowPropagation: () => void; /** * Indicates whether the event has been canceled. */ isCanceled: boolean; /** * Indicates whether the event is allowed to propagate. */ isPropagationAllowed: boolean; } & CustomProperties; /** * Details of custom change events emitted by Zest components. */ export type ZestChangeEventDetails = Reason extends string ? ZestChangeEventDetail & {} : never; /** * Creates a Zest event details object with the given reason and utilities * for preventing Zest's internal event handling. */ export declare function createChangeEventDetails(reason: Reason, event?: ZestNativeEvent, customProperties?: CustomProperties): ZestChangeEventDetails; export {}; //# sourceMappingURL=createChangeEventDetails.d.ts.map