// Keep these types in sync with ../auth/define.ts — the exported ChatAuthBridge // there is the same contract host apps implement via defineChatAuth(). declare module '#chat-auth' { type ChatAuthUser = { id: string email?: string | null name?: string | null image?: string | null } type ChatAuthMemberUser = { name: string email: string image?: string } type ChatAuthMember = { id: string userId: string user: ChatAuthMemberUser } type ChatAuthOrganization = { id: string name?: string logo?: string | null members?: ChatAuthMember[] } export function useChatAuth(): { user: import('vue').Ref activeOrganization: import('vue').Ref logout: () => Promise getToken: () => Promise getAvailableOrganizations: () => Promise switchOrganization: (organizationId: string) => Promise } }