import { type DamagesRecord } from "../../data"; import type { Element } from "../../ElementLookup"; export { DuplicateElementDamageDialog } from "./DublicateElementDamageDialog"; export type DuplicateElementDamageHandle = { onClose: () => void; checkDuplicate: () => Promise; record: DamagesRecord[]; }; type DuplicateElementDamageProps = { element: Element | null; /** * External control of dialog visibility */ open?: boolean; onOpenChange?: (value: boolean) => void; /** * Skip duplicate checking (used in edit mode) */ disableCheck?: boolean; /** * Loading state for submit button */ loading?: boolean; /** * Indicate if a link to the element damage form should be used */ linkToDamage?: boolean; /** * Called when duplicate or duplicates are found * @param record Array with all of the duplicate damages * @returns void */ onDuplicateFound?: (record: DamagesRecord[]) => void; /** * Called when user presses register anyway in dialog * @returns void */ onRegisterAnyway?: () => void; }; export declare const DuplicateElementDamage: import("react").ForwardRefExoticComponent>;