import { DiscordImage, MJConfig } from "./interfaces"; import { Command } from "./command"; export declare class MidjourneyApi extends Command { config: MJConfig; private apiQueue; UpId: number; constructor(config: MJConfig); protected safeIteractions(payload: any): Promise; protected interactions(payload: any, callback?: (result: number) => void): Promise; ImagineApi(prompt: string, nonce?: string, session_id?: string): Promise; VariationApi({ index, msgId, hash, nonce, flags, session_id }: { index: 1 | 2 | 3 | 4; msgId: string; hash: string; nonce?: string; flags?: number; session_id?: string; }): Promise; UpscaleApi({ index, msgId, hash, nonce, flags, }: { index: 1 | 2 | 3 | 4; msgId: string; hash: string; nonce?: string; flags: number; }): Promise; RerollApi({ msgId, hash, nonce, flags, }: { msgId: string; hash: string; nonce?: string; flags: number; }): Promise; CustomApi({ msgId, customId, flags, nonce, session_id }: { msgId: string; customId: string; flags: number; nonce?: string; session_id?: string; }): Promise; InfoApi(nonce?: string): Promise; SettingsApi(nonce?: string): Promise; FastApi(nonce?: string): Promise; RelaxApi(nonce?: string): Promise; /** * * @param fileUrl http or local file path * @returns */ UploadImage(fileUrl: string): Promise; /** * prepare an attachement to upload an image. */ private attachments; private uploadImage; DescribeApi(image: DiscordImage, nonce?: string): Promise; }