import { ReactElement } from 'react'; import { ErrorPersistResult, SuccessfulPersistResult } from '@contember/binding'; export interface DeleteEntityTriggerProps { /** * If true, binding will trigger persist immediately after the entity is deleted. */ immediatePersist?: boolean; /** * The button element. */ children: ReactElement; /** * Callback that is called when the entity is successfully deleted. * Ignored if immediatePersist is not true. */ onPersistSuccess?: (result: SuccessfulPersistResult) => void; /** * Callback that is called when an error occurs during the deletion. * Ignored if immediatePersist is not true. */ onPersistError?: (result: ErrorPersistResult) => void; } /** * A button that deletes the current entity when clicked. * * If immediatePersist is true, the binding will trigger persist immediately after the entity is deleted. * * ## Props {@link DeleteEntityTriggerProps} * - children, ?immediatePersist, ?onPersistError, ?onPersistSuccess * * ## Example * ```tsx * * * * ``` */ export declare const DeleteEntityTrigger: ({ immediatePersist, onPersistError, onPersistSuccess, ...props }: DeleteEntityTriggerProps) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=DeleteEntityTrigger.d.ts.map