import { ComputedRef } from 'vue'; import { FormMessages } from '../../composables/useFormElementError.js'; import { SharedFormElementProps } from '../OnyxFormElement/types.js'; import { OnyxFormElementV2Props } from './types.js'; type UseLegacyFormElementOptions = { props: Omit & Pick; errorMessages: ComputedRef; }; /** * Composable for mapping the legacy props of `OnyxFormElement` based components * to the new `OnyxFormElementV2` based props. * * This is used for backwards compatibility until onyx version 2 so we don't introduce breaking changes * into existing components. */ export declare const useLegacyFormElementProps: ({ props, errorMessages, }: UseLegacyFormElementOptions) => { formElementV2Props: ComputedRef>; }; export {};