import type { ReactNode } from 'react'; export interface AddSourceModeContextValue { /** * True when the create wizard is appending source(s) to a deployed pipeline * (entered from the dashboard via `?addSource=true`). */ isAddSource: boolean; /** * Positions of the already-deployed sources within `PipelineFormData.sources`, * captured once at seed (read-only in the add-source flow). * * Deliberately positional rather than name-keyed: a name is user-editable, so * matching by name misclassified a *new* source as deployed the moment its * name collided with an existing one — locking its name field, hiding its * delete control and leaving the user stuck on a duplicate-name error. A * source's position is stable: new sources are appended after the seeded ones * and deployed sources can't be removed here. */ existingSourceIndexes: Set; } interface AddSourceModeProviderProps { isAddSource: boolean; existingSourceIndexes: Set; children: ReactNode; } export declare const AddSourceModeProvider: ({ isAddSource, existingSourceIndexes, children }: AddSourceModeProviderProps) => import("react/jsx-runtime").JSX.Element; export declare const useAddSourceContext: () => AddSourceModeContextValue; export declare const useAddSourceMode: () => boolean; export {};