import { ButtonOptions } from "../button/button"; import { ElementType, HTMLHopeProps } from "../types"; export interface AsyncButtonOptions extends ButtonOptions { onClick?: (event: MouseEvent) => Promise; } export declare type AsyncButtonProps = HTMLHopeProps; /** * AsyncButton renders regular Button component and manages loading state automatically. * Hence requires onClick handler to return a Promise. */ export declare function AsyncButton(props: AsyncButtonProps): import("solid-js").JSX.Element; export declare namespace AsyncButton { var toString: () => string; } //# sourceMappingURL=async-button.d.ts.map