import { InputTextPassThroughOptions } from 'primevue/inputtext'; import { TextareaPassThroughOptions } from 'primevue/textarea'; import { ComputedRef, MaybeRefOrGetter } from 'vue'; /** * Input theme configuration interface */ export interface InputThemeProps { /** Size of the input */ size?: MaybeRefOrGetter<"medium" | "large">; /** Whether the input is readonly */ readonly?: MaybeRefOrGetter; /** Whether this is a textarea (affects some styling) */ isTextarea?: MaybeRefOrGetter; /** Whether the textarea has auto-resize enabled */ autoResize?: MaybeRefOrGetter; /** Left icon (for text inputs) */ leftIcon?: MaybeRefOrGetter; /** Right icon (for text inputs) */ rightIcon?: MaybeRefOrGetter; /** Right-side control (e.g. privacy toggle) — applies same inset padding as rightIcon */ hasRightAddon?: MaybeRefOrGetter; } /** * Composable for generating input theme styles (TextInput and TextArea) * * This composable encapsulates the input styling logic, making it reusable * across TextInput and TextArea components with consistent readonly, size, * and state styling. * * @param props - Input theme configuration properties (supports refs and computed values) * @returns Computed PassThroughOptions for PrimeVue input/textarea styling * * @example * ```ts * // For TextInput * const textInputTheme = useInputTheme({ * size: computed(() => props.size), * readonly: computed(() => props.readonly), * leftIcon: computed(() => props.leftIcon), * rightIcon: computed(() => props.rightIcon) * }); * * // For TextArea * const textAreaTheme = useInputTheme({ * size: computed(() => props.size), * readonly: computed(() => props.readonly), * isTextarea: true, * autoResize: computed(() => props.autoResize) * }); * ``` */ export declare function useInputTheme(props: InputThemeProps): ComputedRef;