import type { Plugin, CustomInput, InputWithSettings, InternalPlugin, StoreType, Data, LevaInputs, InputOptions } from "./types/index.js"; export declare const Plugins: Record>; export declare function getValueType({ value, ...settings }: any): string | undefined; /** * Populates Schemas and Plugins singletons that are used globally. * * @param type * @param plugin */ export declare function register(type: LevaInputs, { schema, ...plugin }: InternalPlugin): void; /** * helper function for types * @param plugin */ export declare function createInternalPlugin(plugin: InternalPlugin): InternalPlugin; type PluginInput = Input extends object ? Input extends Array ? Input | ({ value?: Input; } & InputOptions) : Input & InputOptions : Input; /** * This function should be used by custom plugins. It is mostly used as a way * to properly type the input return value. * * @param plugin */ export declare function createPlugin(plugin: Plugin): (input?: PluginInput) => CustomInput; export declare function normalize(type: string, input: InputWithSettings, path: string, data: Data): { value: any; settings?: any; }; export declare function sanitize(type: string, value: any, settings: Settings, prevValue: any, path: string, store: StoreType): any; export declare function format(type: string, value: any, settings?: Settings): any; export {};