UNPKG

midjourney

Version:

Node.js client for the unofficial MidJourney API.

15 lines (14 loc) 671 B
import { LoadingHandler, MJMessage, MJConfig, MJConfigParam } from "./interfaces"; export declare class MidjourneyMessage { config: MJConfig; constructor(defaults: MJConfigParam); private safeRetrieveMessages; private processRequest; private queue; protected log(...args: any[]): void; FilterMessages(timestamp: number, prompt: string, loading?: LoadingHandler): Promise<MJMessage | null>; protected content2progress(content: string): string; UriToHash(uri: string): string; WaitMessage(prompt: string, loading?: LoadingHandler, timestamp?: number): Promise<MJMessage | null>; RetrieveMessages(limit?: number): Promise<any>; }