import type { Ref } from "./lib/svelte.svelte.js"; import { type EnumOption, type SchemaArrayValue, type SchemaValue } from "./core/index.js"; export interface OptionsMapper { fromValue: (value: SchemaValue | undefined) => V; toValue: (value: V) => SchemaValue | undefined; } export declare const UNDEFINED_ID = "-1"; export declare function idMapper(options: EnumOption[]): OptionsMapper["id"]>; interface OptionValue { /** @deprecated use `current` instead */ value: V; } export declare function singleOption({ mapper, value, update, }: { mapper: () => OptionsMapper; value: () => SchemaValue | undefined; update: (value: SchemaValue | undefined) => void; }): OptionValue & Ref; export declare function multipleOptions({ mapper, value, update, }: { mapper: () => OptionsMapper; value: () => SchemaArrayValue | undefined; update: (value: SchemaArrayValue) => void; }): OptionValue & Ref; export {};