
"use client";
import { BottomSheetHeight } from "../../../types/dist/index.js";

//#region src/components/client/BottomSheet/utils.d.ts
/**
 * Check if an element is an input-like element.
 * @param el - The element to check.
 * @returns True if the element is an input-like element, false otherwise.
 */
declare function isInputLike(el: Element | null): boolean;
/**
 * Get the viewport height in pixels.
 * @returns The viewport height in pixels.
 */
declare function getViewportHeightPx(): number;
/**
 * Clamp an index into the valid range for an array-like collection.
 *
 * @param index - The candidate index (may be negative or out of bounds).
 * @param length - The collection length.
 * @returns A valid index in the range [0, length - 1]. Returns 0 if length <= 0.
 *
 * @example
 * clampIndex(12, 10) // 9
 * clampIndex(-3, 10) // 0
 * clampIndex(5, 0)   // 0
 */
declare function clampIndex(index: number, length: number): number;
/**
 * Resolve a height value to a pixel value.
 * @param height - The height value to resolve.
 * @param viewportHeightPx - The viewport height in pixels.
 * @returns The resolved height in pixels.
 */
declare function resolveHeightToPx(height: BottomSheetHeight, viewportHeightPx: number): number;
/**
 * Check if an element is scrollable.
 * @param el - The element to check.
 * @returns True if the element is scrollable, false otherwise.
 */
declare function isScrollable(el: HTMLElement): boolean;
/**
 * Check if a drag event should be prevented from the target element.
 * @param target - The target element.
 * @returns True if the drag event should be prevented, false otherwise.
 */
declare function shouldPreventDragFromTarget(target: EventTarget | null): boolean;
/**
 * Get the translateY value of an element's transform.
 * @param el - The element to get the translateY value of.
 * @returns The translateY value in pixels.
 */
declare function getTranslateY(el: HTMLElement | null): number;
/**
 * Parse a max snap point ratio from a string.
 * @param rawValue - The raw value to parse.
 * @returns The parsed max snap point ratio.
 */
declare function parseMaxSnapPointRatio(rawValue: string): number;
//#endregion
export { clampIndex, getTranslateY, getViewportHeightPx, isInputLike, isScrollable, parseMaxSnapPointRatio, resolveHeightToPx, shouldPreventDragFromTarget };