import type { Contact, SubscribeListener } from "../types"; import type { API } from "./raw"; /** * The class that encapsulates the social API * @internal */ export declare class SocialAPI { private api; constructor(api: API); /** * Opens the social modal */ openModal(withId?: ((userId: string) => void) | null, onClose?: (() => void) | null): void; /** * Gets the user info for a given ID or handle. * @param query - The ID or handle of the user, defaults to logged in user's ID. */ getUser(query?: { userId?: string; handle?: string; }): Promise; /** * Contacts */ contacts: { /** * Lists contacts * @returns a list of contacts */ list: () => Promise; /** * Subscribes to contacts * @returns an unsubscribe function */ subscribe: (listener: SubscribeListener) => Promise<() => Promise>; }; }