import { DiscordImage, MJConfig, ModalSubmitID } from "./interfaces"; import { Command } from "./command"; export declare class MidjourneyApi extends Command { config: MJConfig; UpId: number; constructor(config: MJConfig); private safeIteractions; private processRequest; private queue; private interactions; ImagineApi(prompt: string, nonce?: string): Promise; SwitchRemixApi(nonce?: string): Promise; ShortenApi(prompt: string, nonce?: string): Promise; VariationApi({ index, msgId, hash, nonce, flags, }: { index: 1 | 2 | 3 | 4; msgId: string; hash: string; nonce?: string; flags?: number; }): 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, }: { msgId: string; customId: string; flags: number; nonce?: string; }): Promise; ModalSubmitApi({ nonce, msgId, customId, prompt, submitCustomId, }: { nonce: string; msgId: string; customId: string; prompt: string; submitCustomId: ModalSubmitID; }): Promise; RemixApi({ nonce, msgId, customId, prompt, }: { nonce: string; msgId: string; customId: string; prompt: string; }): Promise; ShortenImagineApi({ nonce, msgId, customId, prompt, }: { nonce: string; msgId: string; customId: string; prompt: string; }): Promise; DescribeImagineApi({ nonce, msgId, customId, prompt, }: { nonce: string; msgId: string; customId: string; prompt: string; }): Promise; CustomZoomImagineApi({ nonce, msgId, customId, prompt, }: { nonce: string; msgId: string; customId: string; prompt: string; }): Promise; InfoApi(nonce?: string): Promise; SettingsApi(nonce?: string): Promise; FastApi(nonce?: string): Promise; RelaxApi(nonce?: string): Promise; /** * * @param fileUrl http file path * @returns */ UploadImageByUri(fileUrl: string): Promise; UploadImageByBole(blob: Blob, filename?: string): Promise; /** * prepare an attachement to upload an image. */ private attachments; private uploadImage; DescribeApi(image: DiscordImage, nonce?: string): Promise; upImageApi(image: DiscordImage, nonce?: string): Promise; }