import type { ComponentID } from '@teambit/component-id'; import type { Consumer } from '@teambit/legacy.consumer'; import type { Lane, ModelComponent } from '@teambit/objects'; import type { RemoveMain } from '@teambit/remove'; import type { Workspace } from '@teambit/workspace'; export type ResetResult = { id: ComponentID; versions: string[]; component?: ModelComponent; /** * relevant when the component was detached head so the head didn't change. * we want .bitmap to have the version before the detachment. not as the head. */ versionToSetInBitmap?: string; /** batchIds from the version objects being removed, used to clean up lane history entries */ batchIds?: string[]; }; /** * If head is false, remove all local versions. */ export declare function removeLocalVersion(consumer: Consumer, id: ComponentID, lane?: Lane, head?: boolean, force?: boolean): Promise; export declare function removeLocalVersionsForAllComponents(workspace: Workspace, remove: RemoveMain, lane?: Lane, head?: boolean): Promise; export declare function removeLocalVersionsForMultipleComponents(consumer: Consumer, componentsToUntag: ModelComponent[], lane?: Lane, head?: boolean, force?: boolean): Promise; export declare function getComponentsWithOptionToUntag(workspace: Workspace, remove: RemoveMain): Promise;