interface Options { onlyOnce?: boolean; isActive?: boolean; } interface UseDeprecationWarning { /** * Provides a development-only console warning on component mount. * * `text:`The deprecation warning text. It should describe what is being deprecated, * when it is being deprecated (what lib version usually), and what to use instead. * * `options: { onlyOnce?: boolean, isActive?: boolean }` * - `onlyOnce`: whether the warning will be shown just once * - `isActive`: whether the warning should be shown * * e.g. "\`MyField\` will be deprecated in Astro-UI 1.0.0, use \`MyOtherField\` instead." */ (text: string, options?: Options): void; } declare const useDeprecationWarning: UseDeprecationWarning; export default useDeprecationWarning;