interface DiscardPendingSourceVariables { /** `details.name` of the in-progress source to drop. */ sourceName: string; /** Names of the already-deployed sources, used to detect the last pending one. */ deployedNames: Set; } /** * Drops one in-progress source, from both places it can live: * * - the pipeline config, where the source-test `PATCH` stored it with * `active: false` — removed with a merge-patch `null` so the deployed sources * and the rest of the config are left untouched (and the pipeline is not * redeployed, unlike deleting a live source); * - the saved draft, keeping the other sources. When it was the last pending one * (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. */ export declare const useDiscardPendingSource: () => import("@tanstack/react-query").UseMutationResult; export {};