import type { InlineChip } from '@renderer/types/inlineChip';
import type {
  EffortLevel,
  TeamFastMode,
  TeamProviderBackendId,
  TeamProviderId,
} from '@shared/types';

export interface MemberDraft {
  id: string;
  name: string;
  originalName?: string;
  roleSelection: string;
  customRole: string;
  workflow?: string;
  workflowChips?: InlineChip[];
  isolation?: 'worktree';
  providerId?: TeamProviderId;
  providerBackendId?: TeamProviderBackendId;
  model?: string;
  effort?: EffortLevel;
  fastMode?: TeamFastMode;
  removedAt?: number | string | null;
}

export interface MembersEditorValue {
  members: MemberDraft[];
}
