import { D as Dict, C as CoreProps, a as CoreContext, F as Field, V as VariantKey, L as LabelPlacement, S as SublabelPlacement, b as DescriptionPlacement, H as HelpTextPlacement, E as ErrorTextPlacement, c as SlotPlacement, d as FieldSize, e as FieldDensity, f as ValidateResult, g as ChangeDetail, h as VariantValueFor, i as VariantPropsFor, j as VariantModule, P as PhoneCountry, k as PasswordDefinitionMap, l as CustomFileLoader, m as FileItem } from './core-Cg8uXa6v.js';
export { B as BaseProps, s as ButtonRef, z as EffectiveFieldLayout, y as FieldLayoutConfig, x as FieldOrdering, w as FieldRootId, u as FieldRoots, v as FieldSlotId, t as FieldSlots, p as FormProps, n as InferFromSchema, I as InputNumber, r as InputStore, A as LayoutResolveContext, G as LayoutResolver, R as RelativeRootsMap, o as SubmitEvent, T as Textarea, q as ValuesResult, J as VariantEntry, N as VariantLayoutDefaults, O as VariantModuleFor, M as VariantValidateFn, K as Variants } from './core-Cg8uXa6v.js';
import { A as AdapterKey } from './adapter-CvjXO9Gi.js';
export { a as AdapterCallbacks, c as AdapterConfig, h as AdapterError, d as AdapterFactory, g as AdapterOk, f as AdapterProps, b as AdapterResult, i as AdapterSubmit, e as Adapters, M as Method, N as NamedAdapterConfig, j as NamedAdapterFactory } from './adapter-CvjXO9Gi.js';
export { createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.js';
import * as react_jsx_runtime from 'react/jsx-runtime';
import * as React from 'react';
import { z } from 'zod';
import { $ZodError } from 'zod/v4/core';
import 'react-day-picker';
import 'class-variance-authority/types';
import 'class-variance-authority';
import '@radix-ui/react-switch';
import '@inertiajs/core';
import 'axios';

type Props<V extends Dict, S extends z.ZodType | undefined, K extends AdapterKey> = CoreProps<V, S, K> & {
    children?: React.ReactNode;
};
/**
 * CoreProvider: owns the form/core runtime state and implements CoreContext.
 *
 * - Tracks all inputs in a single store (inputsRef)
 * - Supports:
 *   - named inputs via `name`
 *   - bound inputs via `bindId`
 *   - grouped inputs via `groupId`
 * - Manages errors and uncaught messages
 * - Builds values snapshots (including bucket values)
 * - Orchestrates submission via the adapter registry
 */
declare function CoreProvider<V extends Dict, S extends z.ZodType | undefined, K extends AdapterKey = "local">(props: Props<V, S, K>): react_jsx_runtime.JSX.Element;

interface CoreRootProps extends React.FormHTMLAttributes<HTMLFormElement> {
    /**
     * If true, the global ErrorStrip will not be rendered automatically.
     */
    noErrorStrip?: boolean;
    /**
     * Optional hook invoked after CoreRoot orchestrates the submit.
     *
     * - The native event is already `preventDefault()`-ed.
     * - The adapter flow is triggered via `form.go(...)`.
     * - Use this to tap into submit without breaking the core.
     */
    onSubmitForm?(event: React.FormEvent<HTMLFormElement>, form: CoreContext<Dict>): void | Promise<void>;
}
/**
 * CoreRoot: actual <form> element wired to the core runtime.
 *
 * Responsibilities:
 * - Own the native submit event and prevent full-page navigation.
 * - Delegate submit orchestration to form.go().
 * - Optionally render the global ErrorStrip at the top.
 */
declare function CoreRoot(props: CoreRootProps): react_jsx_runtime.JSX.Element;

/**
 * Shared base props for CoreShell, independent of wrapping behaviour.
 */
type CoreShellBaseProps<V extends Dict = Dict, S extends z.ZodType | undefined = z.ZodType | undefined, K extends AdapterKey = "local"> = CoreProps<V, S, K> & {
    /**
     * Props passed directly to the underlying <form> element via CoreRoot.
     */
    formProps?: CoreRootProps;
    children?: React.ReactNode;
};
/**
 * When `wrapped` is true, you can provide gap/contentClassName.
 */
type CoreShellWrappedProps<V extends Dict = Dict, S extends z.ZodType | undefined = z.ZodType | undefined, K extends AdapterKey = "local"> = CoreShellBaseProps<V, S, K> & {
    wrapped: true;
    /**
     * Gap for the inner wrapper. You can still control layout
     * (flex/grid/etc.) via `contentClassName`.
     */
    gap?: React.CSSProperties["gap"];
    /**
     * Class applied to the wrapper around children.
     */
    contentClassName?: string;
};
/**
 * When `wrapped` is not true (false/undefined), gap/contentClassName
 * are not allowed.
 */
type CoreShellUnwrappedProps<V extends Dict = Dict, S extends z.ZodType | undefined = z.ZodType | undefined, K extends AdapterKey = "local"> = CoreShellBaseProps<V, S, K> & {
    wrapped?: false | undefined;
};
type CoreShellProps<V extends Dict = Dict, S extends z.ZodType | undefined = z.ZodType | undefined, K extends AdapterKey = "local"> = CoreShellWrappedProps<V, S, K> | CoreShellUnwrappedProps<V, S, K>;
/**
 * Combined provider + form-root wrapper.
 *
 * Usage:
 *   <CoreShell adapter="local" schema={schema} formProps={{ className: "space-y-4" }}>
 *     {...fields + buttons...}
 *   </CoreShell>
 *
 *   <CoreShell
 *     adapter="local"
 *     schema={schema}
 *     wrapped
 *     gap="1rem"
 *     contentClassName="flex flex-col"
 *   >
 *     {...fields + buttons...}
 *   </CoreShell>
 */
declare function CoreShell<V extends Dict, S extends z.ZodType | undefined, K extends AdapterKey = "local">(props: CoreShellProps<V, S, K>): react_jsx_runtime.JSX.Element;

interface UseButtonOptions {
    /**
     * Logical name of the button.
     *
     * Used by the core to:
     * - mark this as the "active" button before submit
     * - toggle loading/disabled specifically for this button
     */
    name: string;
    /**
     * If true, clicking this button should trigger a submit:
     *
     * - form.setActiveButton(name)
     * - form.go()
     */
    submit?: boolean;
    /**
     * Initial disabled state.
     */
    disabled?: boolean;
    /**
     * Optional click handler.
     *
     * This runs *in addition to* the submit behavior (if `submit` is true).
     * You can call `event.preventDefault()` to prevent the auto-submit.
     */
    onClick?(event: React.MouseEvent<HTMLButtonElement>, form: CoreContext<Dict>): void | Promise<void>;
}
interface UseButtonReturn {
    /**
     * Current loading state, controlled by the core (via adapters) and
     * optionally by the host via setLoading.
     */
    loading: boolean;
    setLoading(loading: boolean): void;
    /**
     * Current disabled state.
     */
    disabled: boolean;
    setDisabled(disabled: boolean): void;
    /**
     * Ref for the underlying <button>.
     */
    ref: React.RefObject<HTMLButtonElement>;
    /**
     * Click handler wired to the core.
     */
    onClick(event: React.MouseEvent<HTMLButtonElement>): void;
    /**
     * Convenience bundle for spreading onto a <button>.
     *
     * Example:
     *   const btn = useButton({ name: "save", submit: true });
     *   return <button {...btn.buttonProps}>Save</button>;
     */
    buttonProps: {
        ref: React.RefObject<HTMLButtonElement>;
        disabled: boolean;
        "data-loading"?: "true" | "false";
        onClick(event: React.MouseEvent<HTMLButtonElement>): void;
    };
}
/**
 * useButton
 *
 * - Registers a ButtonRef with the core.
 * - Cooperates with setActiveButton + adapter-based submit.
 * - Handles loading/disabled toggling via the core's callbacks.
 */
declare function useButton(options: UseButtonOptions): UseButtonReturn;

/**
 * Convenience alias for useCoreContext.
 *
 * This mirrors the legacy useForm hook: you get the full CoreContext,
 * and can call core.values(), core.submit(), core.go(), etc.
 */
declare function useCore<V extends Dict = Dict>(): CoreContext<V>;

/**
 * Typed hook to access the current core/form context.
 *
 * Must be used inside a <CoreProvider>. If no provider is found,
 * this will throw to make misuse obvious.
 */
declare function useCoreContext<V extends Dict = Dict>(): CoreContext<V>;

type UseFieldValidate<T> = (value: T, field?: Field, form?: CoreContext<any>, report?: boolean) => boolean | string;
interface UseFieldOptions<T = unknown> {
    /**
     * Primary field name.
     *
     * This is the key that will show up in the values snapshot and
     * error bags (unless mapped via `shared` or `alias`).
     */
    name?: string;
    variant: VariantKey;
    /**
     * Optional internal binding identifier.
     *
     * Used by the bound helpers (observeBoundField, waitForBoundField)
     * and the binder registry.
     */
    bindId?: string;
    /**
     * Optional external binding key – a semantic identifier for this
     * field’s binding group.
     *
     * Example:
     *   bind="shipping"
     */
    bind?: string;
    /**
     * Shared key for nested grouping, e.g:
     *
     *   shared="profile", name="first_name"
     *   → values.profile.first_name
     */
    shared?: string;
    /**
     * Optional grouping identifier used to group related controls
     * (e.g. radio groups, segmented inputs).
     */
    groupId?: string;
    /**
     * Optional alias for error / mapping purposes.
     *
     * Example:
     *   alias="email" but name="contact.email"
     */
    alias?: string;
    /**
     * Marks this field as the "main" one in a group.
     */
    main?: boolean;
    /**
     * If true, this field is ignored by snapshot / some validation
     * flows, but may still exist in the registry.
     */
    ignore?: boolean;
    /**
     * Whether the field is required.
     */
    required?: boolean;
    /**
     * Controlled value prop.
     */
    value?: T;
    /**
     * Initial/default value for this field.
     */
    defaultValue?: T;
    /**
     * Initial disabled flag.
     */
    disabled?: boolean;
    /**
     * Initial readOnly flag.
     */
    readOnly?: boolean;
    /**
     * Custom validation hook.
     *
     * Return:
     * - `true`       → valid
     * - `false`      → invalid (no message)
     * - `"message"`  → invalid with explicit message
     */
    validate?: UseFieldValidate<T>;
    /**
     * Optional projector to derive an "original" value from the
     * initial default.
     */
    getOriginalValue?(value: T | undefined): unknown;
    /**
     * Local change hook for the field.
     *
     * This is in addition to the form-level `onChange`.
     */
    onValueChange?(next: T, prev: T, variant: string): void;
    onSubmit?(e: any): any;
}
interface UseFieldReturn<T = unknown> {
    /** Ref to the underlying DOM element */
    ref: React.RefObject<HTMLElement>;
    key: string;
    /** Current value */
    value: T | undefined;
    setValue(next: T | undefined, variant?: string): void;
    /** Current error message */
    error: string;
    setError(message: string): void;
    /** Async-loading flag (e.g. remote validation) */
    loading: boolean;
    setLoading(loading: boolean): void;
    /** Required flag */
    required: boolean;
    setRequired(required: boolean): void;
    /** Disabled flag */
    disabled: boolean;
    setDisabled(disabled: boolean): void;
    /** Readonly flag */
    readOnly: boolean;
    setReadOnly(readOnly: boolean): void;
    /** Metadata / wiring */
    name: string;
    bindId: string;
    bind?: string;
    shared?: string;
    groupId?: string;
    alias?: string;
    main?: boolean;
    ignore?: boolean;
    /** Snapshots */
    readonly defaultValue: T | undefined;
    readonly originalValue: unknown;
    /** Owning core context */
    form: CoreContext<Dict>;
    /** Run validation (optionally reporting errors) */
    validate(report?: boolean): boolean | undefined;
}
/**
 * Strict field hook.
 *
 * - Registers the field with the core provider / registry.
 * - Exposes value/error/loading and lifecycle helpers.
 * - Wires into:
 *   - core-level `onChange`
 *   - `controlButton()` dirty logic
 */
declare function useField<T = unknown>(options: UseFieldOptions<T>): UseFieldReturn<T>;

/**
 * Optional variant of `useField`.
 *
 * - If there is a CoreProvider, behaves like `useField`.
 * - If not, it becomes a self-managed field (value/error/loading/etc).
 */
declare function useOptionalField<T = unknown>(options: UseFieldOptions<T>): UseFieldReturn<T>;

type ErrorBag = Record<string, string | string[] | undefined | null>;
type ErrorBagMapResult = {
    /** Field-specific errors keyed by field name. */
    fieldErrors: Record<string, string>;
    /** Errors that could not be mapped to a specific field. */
    uncaught: string[];
};
/**
 * Map a generic "error bag" object into field errors + uncaught messages.
 *
 * Typical input:
 *   {
 *     name: "Name is required",
 *     email: ["Email is invalid"],
 *     message: "Something went wrong" // global
 *   }
 *
 * Heuristics:
 * - Keys like "message", "error", "_", "global" → treated as global/uncaught.
 * - Everything else → treated as a field error.
 * - Array values are joined with "\n".
 */
declare function mapErrorBag(bag: ErrorBag): ErrorBagMapResult;

type ZodErrorMapResult = {
    /** Field-specific errors keyed by field name. */
    fieldErrors: Record<string, string>;
    /** Errors that could not be mapped to a specific field. */
    uncaught: string[];
};
/**
 * Map a ZodError into field-specific errors + uncaught messages.
 *
 * Heuristics:
 * - If issue.path[0] is a string → treated as a field name.
 * - Otherwise → message is pushed into `uncaught`.
 *
 * If a field has multiple issues, messages are joined with `\n`.
 */
declare function mapZodError(error: $ZodError): ZodErrorMapResult;

interface ErrorStripProps extends React.HTMLAttributes<HTMLElement> {
    form?: CoreContext<Dict>;
    messages?: readonly string[];
    renderMessage?: (message: string, index: number) => React.ReactNode;
    as?: React.ElementType;
    listProps?: React.HTMLAttributes<HTMLUListElement>;
    dismissible?: boolean;
    onDismiss?: () => void;
    title?: string;
}
declare function ErrorStrip(props: ErrorStripProps): react_jsx_runtime.JSX.Element | null;

/**
 * Core, variant-agnostic props for InputField.
 *
 * @template TValue Logical value type for this field. Will be refined by
 *                  variant typing (VariantValueFor<K>).
 */
interface InputFieldBaseProps<TValue = unknown> {
    name?: string;
    bind?: string;
    groupId?: string;
    shared?: string;
    ignore?: boolean;
    alias?: string;
    main?: boolean;
    tags?: FieldTag[];
    contain?: boolean;
    autoOff?: boolean;
    /**
     * Controlled value prop.
     */
    value?: TValue;
    /**
     * Handles the submission logic for a given form or process.
     *
     * @param {TValue} e - The value associated with the submission action.
     * @return {any} Value to be submitted.
     */
    onSubmit?(e: TValue): any;
    onReset?(e: React.FormEvent<HTMLFormElement>): void;
    label?: React.ReactNode;
    sublabel?: React.ReactNode;
    description?: React.ReactNode;
    helpText?: React.ReactNode;
    /**
     * Optional explicit error text to display.
     *
     * This is *visual* error copy. The actual validation state still
     * lives in field.error / schema / onValidate.
     */
    errorText?: React.ReactNode;
    /**
     * Placement hints for label / sublabel / description / helpText / errorText.
     *
     * These are purely layout hints; actual behaviour is implemented
     * by the preset / host component.
     */
    labelPlacement?: LabelPlacement;
    sublabelPlacement?: SublabelPlacement;
    descriptionPlacement?: DescriptionPlacement;
    helpTextPlacement?: HelpTextPlacement;
    errorTextPlacement?: ErrorTextPlacement;
    tagPlacement?: SlotPlacement;
    required?: boolean;
    disabled?: boolean;
    readOnly?: boolean;
    size?: FieldSize;
    density?: FieldDensity;
    inline?: boolean;
    fullWidth?: boolean;
    onValidate?(value: TValue | undefined, field: Field, form: CoreContext<Dict>): ValidateResult;
    /**
     * Per-field change hook at the InputField level.
     *
     * - `value` is what the variant is trying to set.
     * - `detail` comes from the variant (`ChangeDetail`).
     * - If you return `undefined`, the original value is used.
     * - If you return *anything else*, that is what will be stored
     *   in the core (and emitted to the form).
     */
    onChange?(e: {
        value: TValue | undefined;
        preventDefault(): void;
        event?: React.SyntheticEvent;
        readonly isDefaultPrevented?: boolean;
        readonly detail: ChangeDetail;
    }): void;
}
/**
 * Public props for <InputField />.
 *
 * - `variant` selects the variant module.
 * - All variant-specific props are merged directly into the field props
 *   via `VariantPropsFor<K>`.
 *
 * NOTE: this is a type alias (not an interface) so we can safely intersect
 * unions coming from VariantPropsFor<K> / VariantValueFor<K>.
 */
type InputFieldProps<K extends VariantKey = VariantKey, H = unknown> = InputFieldBaseProps<VariantValueFor<K, H>> & VariantPropsFor<K, H> & InputFieldClassNameProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue" | 'value'> & {
    variant: K;
    /**
     * @deprecated Use the specific *ClassName props instead
     * (className, labelClassName, errorClassName, etc.).
     */
    classes?: Partial<InputFieldClassNames>;
    defaultValue?: any;
};
interface InputFieldClassNameProps {
    /** Root comes from `className` on HTMLDivElement */
    labelRowClassName?: string;
    inlineRowClassName?: string;
    labelClassName?: string;
    sublabelClassName?: string;
    descriptionClassName?: string;
    helpTextClassName?: string;
    errorClassName?: string;
    groupClassName?: string;
    contentClassName?: string;
    variantClassName?: string;
    inlineInputColumnClassName?: string;
    inlineLabelColumnClassName?: string;
    requiredClassName?: string;
    tagClassName?: string;
}
interface InputFieldClassNames {
    root?: string;
    labelRow?: string;
    inlineRow?: string;
    label?: string;
    sublabel?: string;
    description?: string;
    helpText?: string;
    error?: string;
    group?: string;
    content?: string;
    variant?: string;
    inlineInputColumn?: string;
    inlineLabelColumn?: string;
    required?: string;
    tag?: string;
}
interface FieldTag {
    label: React.ReactNode;
    icon?: React.ReactNode;
    className?: string;
    color?: string;
    bgColor?: string;
    onClick?: React.MouseEventHandler<HTMLSpanElement>;
}

/**
 * Public InputField component.
 *
 * - Uses `useField` to register a Field and manage value/error/loading.
 * - Delegates rendering to the chosen variant's `Variant` component.
 * - Uses Shadcn's Field primitives for structure.
 * - Lets variants influence layout via defaults + optional resolveLayout().
 * - Uses a layout graph (buildLayoutGraph) + getSlotsFor().render(...) to
 *   position helpers (sublabel, description, helpText, error, tags) relative to
 *   "label" vs "input" roots without empty wrapper divs.
 */
declare function InputField<K extends VariantKey = VariantKey>(props: InputFieldProps<K>): react_jsx_runtime.JSX.Element | null;

/**
 * Register (or overwrite) a variant module.
 *
 * Typically called from presets, e.g.:
 *
 *   registerVariant(textVariant);
 *   registerVariant(numberVariant);
 */
declare function registerVariant<K extends VariantKey>(module: VariantModule<K>): void;
/**
 * Look up a variant module by key.
 */
declare function getVariant<K extends VariantKey>(key: K): VariantModule<K> | undefined;
/**
 * List all registered variant modules.
 */
declare function listVariants(): VariantModule<VariantKey>[];

/**
 * Register all core/built-in variants.
 *
 * Hosts can call this once at bootstrap:
 *
 *   import { registerCoreVariants } from "@timeax/form-palette/variants";
 *   registerCoreVariants();
 */
declare function registerCoreVariants(): void;

interface InputMaskChangeEvent {
    originalEvent: React.SyntheticEvent<HTMLInputElement> | Event | undefined;
    value: string;
    stopPropagation(): void;
    preventDefault(): void;
    target: {
        name?: string;
        id?: string;
        value: string;
    };
}
interface InputMaskCompleteEvent {
    originalEvent: React.SyntheticEvent<HTMLInputElement> | Event;
    value: string;
}
interface InputMaskRef {
    focus(): void;
    getElement(): HTMLInputElement | null;
}
interface InputMaskProps$1 extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "defaultValue"> {
    mask: string | null;
    autoClear?: boolean;
    autoFocus?: boolean;
    invalid?: boolean;
    unmask?: boolean;
    slotChar?: string;
    'data-slot'?: string;
    value?: string | null;
    onChange?: (e: InputMaskChangeEvent) => void;
    onComplete?: (e: InputMaskCompleteEvent) => void;
}
declare const InputMask: React.MemoExoticComponent<React.ForwardRefExoticComponent<InputMaskProps$1 & React.RefAttributes<InputMaskRef>>>;

type MaskMode = "raw" | "masked";
interface InputMaskProps {
    mask?: string;
    maskDefinitions?: Record<string, RegExp>;
    slotChar?: string;
    autoClear?: boolean;
    unmask?: MaskMode | boolean;
    maskInsertMode?: "stream" | "caret";
}
interface InputAffixProps {
    prefix?: string;
    suffix?: string;
    /**
     * If true (default), we assume the model value does NOT contain the prefix
     * and we only add it visually at render time.
     */
    stripPrefix?: boolean;
    /**
     * If true (default), we assume the model value does NOT contain the suffix
     * and we only add it visually at render time.
     */
    stripSuffix?: boolean;
}
interface InputIconControlProps {
    leadingIcons?: React.ReactNode[];
    trailingIcons?: React.ReactNode[];
    icon?: React.ReactNode;
    iconGap?: number;
    leadingIconSpacing?: number;
    trailingIconSpacing?: number;
    leadingControl?: React.ReactNode;
    trailingControl?: React.ReactNode;
    leadingControlClassName?: string;
    trailingControlClassName?: string;
    joinControls?: boolean;
    extendBoxToControls?: boolean;
    px?: number;
    py?: number;
    ps?: number;
    pe?: number;
    pb?: number;
    inputClassName?: string;
}
interface InputSizeProps {
    size?: "sm" | "md" | "lg" | (string & {});
    density?: "compact" | "normal" | "relaxed" | "dense" | "loose" | (string & {});
}
type InputKeyFilter = string | RegExp | ((nextValue: string, ctx: {
    event: any;
    currentValue: string;
    input: HTMLInputElement;
}) => boolean);
interface InputKeyFilterProps {
    /**
     * Filter that constrains what can be typed / pasted.
     *
     * - string preset: "int" | "num" | "money" | "hex" | "alpha" | "alphanum" | "email"
     * - string pattern: converted to new RegExp(pattern)
     * - RegExp: used directly
     * - function: custom validator
     */
    keyFilter?: InputKeyFilter;
    /**
     * Which keyboard event to hook for filtering:
     * - "keydown"
     * - "keypress" (closest to PrimeReact default)
     * - "beforeinput"
     *
     * Default: "keypress"
     */
    keyFilterOn?: "keydown" | "keypress" | "beforeinput";
    /**
     * Whether to apply keyFilter to paste events.
     * Default: true
     */
    keyFilterOnPaste?: boolean;
}
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, InputMaskProps, InputAffixProps, InputIconControlProps, InputSizeProps, InputKeyFilterProps {
}
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;

type IconGroup = {
    id: string;
    label: string;
    prefixes: string[];
};
interface PaletteRegistry {
    countries: PhoneCountry[];
    ruleDefinition: PasswordDefinitionMap;
    customLoader: CustomFileLoader;
    getCountries: () => Promise<PhoneCountry[]>;
    formatFileValue: (file: FileItem) => string | undefined;
    iconPicker: {
        groups?: IconGroup[];
        url?: string;
    };
}
declare global {
    interface Window {
        "form-palette"?: Partial<PaletteRegistry>;
    }
}
/**
 * Registers a value to the global window['form-palette'] object.
 * Safe to call in SSR environments (it will just no-op).
 */
declare function registerPaletteUtil<K extends keyof PaletteRegistry>(key: K, value: PaletteRegistry[K]): void;
/**
 * Retrieves a value from the global window['form-palette'] object.
 * Returns the value if found, otherwise returns the optional defaultValue or undefined.
 */
declare function getPaletteUtil<K extends keyof PaletteRegistry>(key: K, defaultValue?: PaletteRegistry[K]): PaletteRegistry[K] | undefined;

export { AdapterKey, CoreContext, CoreProps, CoreProvider, type CoreShellProps, DescriptionPlacement, Dict, type ErrorBag, type ErrorBagMapResult, ErrorStrip, type ErrorStripProps, ErrorTextPlacement, Field, CoreShell as Form, CoreRoot as FormRoot, HelpTextPlacement, Input, InputField, type InputFieldBaseProps, type InputFieldProps, InputMask, LabelPlacement, SlotPlacement, SublabelPlacement, type UseButtonOptions, type UseButtonReturn, type UseFieldOptions, type UseFieldReturn, type UseFieldValidate, ValidateResult, VariantKey, VariantModule, VariantPropsFor, VariantValueFor, type ZodErrorMapResult, getPaletteUtil, getVariant, listVariants, mapErrorBag, mapZodError, registerCoreVariants, registerPaletteUtil, registerVariant, useButton, useCore, useCoreContext, useField, useOptionalField };
