import type { Dispatch } from '../../../types.js'; import type { HTMLInputAttributes } from 'svelte/elements'; /** * Input component for form fields. * * Supports both controlled (with value binding) and action dispatch patterns. * * @packageDocumentation * * @example * ```svelte * * * * * *

* {state.emailError} *

* * * console.log(e.currentTarget.value)} * /> * ``` */ interface InputProps extends Omit { /** * Input type. */ type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search'; /** * Current value (supports two-way binding). */ value?: string | number; /** * Disabled state. */ disabled?: boolean; /** * Error state (for styling). */ error?: boolean; /** * ID of error message element (sets aria-describedby automatically). */ errorId?: string; /** * Manual aria-describedby override (use if not using errorId). */ describedBy?: string; /** * Reducer action to dispatch on input (Composable Architecture pattern). * The action will be enriched with the current value. */ action?: Action; /** * Dispatch function from store (required if action is provided). */ dispatch?: Dispatch; /** * Additional CSS classes. */ class?: string; } declare function $$render(): { props: InputProps; exports: {}; bindings: "value"; slots: {}; events: {}; }; declare class __sveltets_Render { props(): ReturnType>['props']; events(): ReturnType>['events']; slots(): ReturnType>['slots']; bindings(): "value"; exports(): {}; } interface $$IsomorphicComponent { new (options: import('svelte').ComponentConstructorOptions['props']>>): import('svelte').SvelteComponent['props']>, ReturnType<__sveltets_Render['events']>, ReturnType<__sveltets_Render['slots']>> & { $$bindings?: ReturnType<__sveltets_Render['bindings']>; } & ReturnType<__sveltets_Render['exports']>; (internal: unknown, props: ReturnType<__sveltets_Render['props']> & {}): ReturnType<__sveltets_Render['exports']>; z_$$bindings?: ReturnType<__sveltets_Render['bindings']>; } declare const Input: $$IsomorphicComponent; type Input = InstanceType>; export default Input; //# sourceMappingURL=Input.svelte.d.ts.map