import type { Ref } from 'vue'; export type ChatAuthUser = { id: string; email?: string | null; name?: string | null; image?: string | null; }; export type ChatAuthMemberUser = { name: string; email: string; image?: string; }; export type ChatAuthMember = { id: string; userId: string; user: ChatAuthMemberUser; }; export type ChatAuthOrganization = { id: string; name?: string; logo?: string | null; members?: ChatAuthMember[]; }; export type ChatAuthBridge = { user: Ref; activeOrganization: Ref; logout: () => Promise; getToken: () => Promise; getAvailableOrganizations: () => Promise; switchOrganization: (organizationId: string) => Promise; }; /** * Identity helper that types a host app's auth bridge against the `#chat-auth` * contract at the definition site. Default-export the result from the file * referenced by the `chatNuxt.authComposable` module option. */ export declare function defineChatAuth(bridge: () => ChatAuthBridge): () => ChatAuthBridge;