/** * @file packages/expo-squircle/src/core/params.ts * @description Helpers for validating and normalizing squircle component props. * * Exports * - normalizeSquircleParams * - normalizeSmoothFactor * - clamp * - shrinkRadius * * @license MIT. Internal helper for expo-squircle. * @author Doğu Abaris */ import type { NormalizedRoundedSurfaceOptions, SquircleParamsProp } from './types'; /** * Validates and sanitizes the incoming squircle props so downstream layout math * can assume required values are present and non-negative. * * @param params Raw props passed to the ExpoSquircle component. * @returns NormalizedRoundedSurfaceOptions Normalized values ready for rendering. * @throws Error when the params object or its `smoothFactor` field are missing. */ export declare function normalizeSquircleParams(params: SquircleParamsProp): NormalizedRoundedSurfaceOptions; /** * Validates and clamps a smoothing value to the [0, 1] range. * * @param value Value to validate (may be undefined). * @returns number Clamped smoothing factor between 0 and 1. * @throws Error when the input is not a finite number. */ export declare function normalizeSmoothFactor(value: number | undefined): number; /** * Clamps a numeric value between the provided range. * * @param value Number to clamp. * @param min Minimal allowed value. * @param max Maximum allowed value. * @returns number Value coerced into the [min, max] range. */ export declare function clamp(value: number, min: number, max: number): number; //# sourceMappingURL=params.d.ts.map