import { UsefulLink, UsefulLinkPayload } from '@edifice.io/client'; export interface LinkFormProps { mode: 'add' | 'edit'; /** Link being edited. Ignored (and required to be undefined) in "add" mode. */ link?: UsefulLink; isSubmitting: boolean; /** Closes the form and goes back to the management modal, without saving. */ onCancel: () => void; /** Closes the whole modal stack. */ onClose: () => void; onSubmit: (payload: UsefulLinkPayload) => void; } export declare function LinkForm({ mode, link, isSubmitting, onCancel, onClose, onSubmit, }: LinkFormProps): import("react/jsx-runtime").JSX.Element;