import { ApplicationId, CommonGroupId, OrganizationId, ProjectId, TesthubId, UserId, TestplanId } from 'teambition-types'; export declare enum CommonGroupBoundToObjectType { Story = "story", Testhub = "testhub" } export declare type BoundToStoryObject = { _projectId: ProjectId; _appId: ApplicationId; }; export declare type BoundToTesthubObject = { _organizationId: OrganizationId; _testhubId: TesthubId; }; export declare type CommonGroupSchema = { _id: CommonGroupId; _appId: string; _boundToObjectId: ApplicationId | TesthubId; _creatorId: UserId; _projectId: ProjectId; _testplanId: TestplanId; ancestorIds: CommonGroupId[]; boundToObject: BoundToStoryObject | BoundToTesthubObject; boundToObjectType: CommonGroupBoundToObjectType.Story | CommonGroupBoundToObjectType.Testhub; created: string; description: string; isRoot: boolean; name: string; pinyin: string; pos: number; resourceCount: number; updated: string; } & ({ _boundToObjectId: ApplicationId; boundToObject: BoundToStoryObject; boundToObjectType: CommonGroupBoundToObjectType.Story; } | { _boundToObjectId: TesthubId; boundToObject: BoundToTesthubObject; boundToObjectType: CommonGroupBoundToObjectType.Testhub; });