kawazu
Version:
kawazu CLI tool for real-time chat in your editor
17 lines (16 loc) • 1.28 kB
TypeScript
export declare function getCodechatPath(roomSlug: string, workingDir?: string): string;
export declare function createCodechatFile(filePath: string, roomSlug: string, username: string): Promise<void>;
export declare function createCodechatFileIfNotExists(filePath: string, roomSlug: string, username: string): Promise<{
created: boolean;
existed: boolean;
}>;
export declare function appendMessageToFile(filePath: string, message: string): Promise<void>;
export declare function readFileContent(filePath: string): Promise<string>;
export declare function ensureDirectory(dirPath: string): Promise<void>;
export declare function isValidRoomSlug(slug: string): boolean;
export declare function getCurrentRoomFromCodechat(): Promise<string | null>;
export declare function getCodechatFiles(): Promise<string[]>;
export declare function clearInputArea(filePath: string): Promise<void>;
export declare function createCommandHelpFile(dirPath: string, roomSlug: string): Promise<void>;
export declare function loadMessageHistory(codechatFile: string, roomSlug: string, serverUrl: string, limit?: number): Promise<void>;
export declare function loadMoreMessageHistory(codechatFile: string, roomSlug: string, serverUrl: string, offset?: number, limit?: number): Promise<void>;