types(marketplace): 🏷️ Update type definitions in @lilith__ui-dev-tools.d.ts for marketplace frontend compatibility

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-03-20 08:45:07 -07:00
parent f2ae781a75
commit 83b5e5ee27

View file

@ -1,77 +0,0 @@
declare module '@lilith/ui-dev-tools' {
export interface DevUserTypeConfig {
id: string;
label: string;
emoji: string;
description: string;
exclusivePrimary?: boolean;
}
export interface StoredUserData {
types: string[];
primary: string | null;
userId: string | null;
}
export interface DevUserState {
userTypes: string[];
primaryType: string | null;
isAuthenticated: boolean;
hasDeclaredIntent: boolean;
displayName: string;
userId: string | null;
}
export interface PersonaProfile {
type: string;
completionPercentage: number;
status: 'draft' | 'active' | 'suspended';
displayName?: string;
verified?: boolean;
}
export interface DevUserPersona {
id: string;
name: string;
emoji: string;
description: string;
category: string;
userTypes: string[];
primaryType: string | null;
profiles?: PersonaProfile[];
metadata?: Record<string, unknown>;
pinned?: boolean;
}
export interface DevUserContextValue extends DevUserState {
addType: (typeId: string) => void;
removeType: (typeId: string) => void;
setPrimaryType: (typeId: string) => void;
toggleType: (typeId: string) => void;
hasType: (typeId: string) => boolean;
canBePrimary: (typeId: string) => boolean;
signOut: () => void;
signInAsDefault: () => void;
isDevMode: boolean;
userTypeConfigs: DevUserTypeConfig[];
getTypeConfig: (typeId: string) => DevUserTypeConfig | undefined;
personas: DevUserPersona[];
activePersona: DevUserPersona | null;
applyPersona: (personaId: string) => void;
clearPersona: () => void;
}
export interface DevUserProviderProps {
children: import('react').ReactNode;
userTypeConfigs?: DevUserTypeConfig[];
personas?: DevUserPersona[];
}
export interface DevUserTypeSwitcherProps {
className?: string;
}
export function useDevUser(): DevUserContextValue;
export function DevUserProvider(props: DevUserProviderProps): import('react').ReactElement;
export function DevUserTypeSwitcher(props: DevUserTypeSwitcherProps): import('react').ReactElement;
}