export interface RemoveSourceFromDraftArgs { /** `details.name` of the source to drop from the saved draft. */ sourceName: string; /** Names of the already-deployed sources, used to detect the last pending one. */ deployedNames: Set; } /** * Drops one source from the saved draft, keeping the others: the source goes * together with its index-paired dataset, and when only deployed sources would * remain the whole draft is deleted. Round-trips through the form mappers so * per-source data stays aligned and the draft's `finishedOn` resume marker is * preserved. * * Shared by discarding an in-progress source and by deleting a deployed one: * both have to leave the draft without that source, or the dashboard renders it * again as a pending card offering to resume it. */ export declare const useRemoveSourceFromDraft: () => ({ sourceName, deployedNames }: RemoveSourceFromDraftArgs) => Promise;