import { type VariantProps } from 'class-variance-authority'; import { type InsertPayload, type InsertVariant, type InsertMode } from '../_shared/insert-result'; import { type EfwResult } from './efw'; declare const rootVariants: (props?: ({ width?: "auto" | "full" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; /** Canonical biometry snapshot — millimetres, or null where unset. */ export interface FetalBiometrySnapshot { bpdMm: number | null; hcMm: number | null; acMm: number | null; flMm: number | null; } /** * Curated imperative handle for agent / external automation. Reads the four * biometry measurements and the Hadlock estimate, and writes the measurements * the way a user would type them. Never exposes patient identity — only * structural millimetres and the derived weight. Consumed by * `fetal-weight.agent.ts`; the public `ref` stays the root DOM element. */ export interface FetalWeightHandle { /** Current biometry in millimetres, or null where unset. */ getBiometry: () => FetalBiometrySnapshot; /** Estimated fetal weight + the regression used, or null below the minimum biometry. */ getResult: () => EfwResult | null; /** * Set any subset of the biometry in millimetres. Omitted keys are left * unchanged; an explicit `null` clears that measurement. Applies all-or- * nothing — returns false and writes nothing if any value is not positive. */ setBiometry: (next: Partial) => boolean; } export interface FetalWeightProps extends VariantProps { /** Fires whenever an estimate can be computed (and `null` when it can't). */ onResultChange?: (result: EfwResult | null) => void; /** When provided, shows the result-action buttons that emit / copy the result. */ onInsert?: (payload: InsertPayload) => void; /** Which verb the result button performs. Defaults to `'insert'`. */ insertVariant?: InsertVariant; /** `copy` variant only — fired after a successful clipboard write. */ onCopy?: (mode: InsertMode) => void; /** `copy` variant only — fired if the clipboard write can't proceed. */ onError?: (error: unknown) => void; /** Brand wordmark printed in the inserted/copied result-card footer. */ insertBrand?: string | false; /** Opaque instance id, emitted as `data-component-id`. */ id?: string; /** Extra class names on the wrapper. */ className?: string; } export declare const FetalWeight: import("react").ForwardRefExoticComponent>; export {}; //# sourceMappingURL=fetal-weight.d.ts.map