UNPKG

askexperts

Version:

AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol

16 lines (15 loc) 468 B
/** * Path to the file storing the current user ID */ export declare const CURRENT_USER_ID_FILE: string; /** * Get the current user ID from the file * @returns The current user ID * @throws Error if the current user ID file doesn't exist */ export declare function getCurrentUserId(): string; /** * Set the current user ID by writing to the file * @param userId The user ID to set as current */ export declare function setCurrentUserId(userId: string): void;