/** * Haptic feedback utilities for AR object interactions * Provides tactile responses when interacting with AR objects */ /** * Haptic feedback type/intensity */ export declare enum ARHapticFeedbackType { LIGHT = "light",// Light impact feedback, best for UI element selection MEDIUM = "medium",// Medium impact feedback, best for confirming actions HEAVY = "heavy",// Heavy impact feedback, best for major state changes SUCCESS = "success",// Success feedback pattern WARNING = "warning",// Warning feedback pattern ERROR = "error",// Error feedback pattern SELECTION = "selection" } /** * Options for configuring haptic feedback */ export interface ARHapticOptions { /** * Whether haptic feedback is enabled * @default true */ enabled: boolean; /** * Intensity multiplier for the haptic feedback (0.0 - 1.0) * @default 1.0 */ intensity?: number; /** * Whether to ignore the device's system settings for haptics * When false, haptics won't trigger if device has haptics disabled * @default false */ ignoreSystemSettings?: boolean; } /** * Haptic feedback manager for AR interactions */ export declare class ARHapticFeedback { /** * Whether haptic feedback is supported by the device/platform */ private static isSupported; /** * Current haptic options */ private static options; /** * Sets global haptic feedback options */ static setOptions(options: Partial): void; /** * Triggers haptic feedback based on the provided type * @param type Type of haptic feedback to trigger * @param customOptions Optional override options for this specific feedback */ static trigger(type?: ARHapticFeedbackType, customOptions?: Partial): void; /** * Triggers feedback when an object is selected */ static objectSelected(): void; /** * Triggers feedback when an object is placed */ static objectPlaced(): void; /** * Triggers feedback when an object is moved */ static objectMoved(): void; /** * Triggers feedback when an object is scaled */ static objectScaled(): void; /** * Triggers feedback when an object is rotated */ static objectRotated(): void; /** * Triggers feedback when an object is removed */ static objectRemoved(): void; /** * Triggers feedback for plane detection */ static planeDetected(): void; /** * Triggers feedback for error conditions */ static error(): void; /** * Triggers a custom pattern of haptic feedback * @param pattern Array of durations in ms, alternating between vibration and pause * @param repeat Whether to repeat the pattern (-1 for no repeat, or index to start repeat from) */ static customPattern(pattern: number[], repeat?: boolean): void; /** * Cancels any ongoing haptic feedback */ static cancel(): void; } //# sourceMappingURL=ARHapticFeedback.d.ts.map