import type { JSONSchema } from '../schema-context';
export type JSONTypeName = 'string' | 'number' | 'integer' | 'object' | 'array' | 'boolean' | 'null';
/**
 * Detect the JSON type name for a value
 */
export declare function detectTypeName(v: unknown, union: JSONTypeName[]): JSONTypeName | null;
/**
 * Try to convert a value to a target type
 */
export declare function tryConvert(value: unknown, target: JSONTypeName): {
    ok: true;
    value: unknown;
} | {
    ok: false;
};
/**
 * Get default cleared value for a type
 */
export declare function defaultClearedValue(target: JSONTypeName): unknown;
/**
 * Extract x:ui configuration from schema with proper typing
 */
export declare function getXUI(def: JSONSchema): {
    unionDefault?: JSONTypeName;
    confirmBranchChange?: boolean;
    selector?: 'segmented' | 'select';
};
