/*! * devextreme-react * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ import * as React from "react"; import { Ref, ReactElement } from "react"; import dxButton, { Properties } from "devextreme/ui/button"; import { IHtmlOptions } from "./core/component"; import type { ClickEvent, ContentReadyEvent, DisposingEvent, InitializedEvent } from "devextreme/ui/button"; type ReplaceFieldTypes = { [P in keyof TSource]: P extends keyof TReplacement ? TReplacement[P] : TSource[P]; }; type IButtonOptionsNarrowedEvents = { onClick?: ((e: ClickEvent) => void); onContentReady?: ((e: ContentReadyEvent) => void); onDisposing?: ((e: DisposingEvent) => void); onInitialized?: ((e: InitializedEvent) => void); }; type IButtonOptions = React.PropsWithChildren & IHtmlOptions & { render?: (...params: any) => React.ReactNode; component?: React.ComponentType; }>; interface ButtonRef { instance: () => dxButton; } declare const Button: (props: React.PropsWithChildren & { ref?: Ref; }) => ReactElement | null; export default Button; export { Button, IButtonOptions, ButtonRef }; import type * as ButtonTypes from 'devextreme/ui/button_types'; export { ButtonTypes };