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; private getInteractions; 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; RegionApi({ msgId, customId, nonce, flags, }: { msgId: string; customId: string; nonce?: string; flags: number; }): Promise; getImageInfoApi({ customId, }: { customId: string; }): Promise<{ status: number; body: any; } | { status: number; body?: undefined; }>; InpaintApi({ customId, prompt, mask, }: { customId: string; prompt: string; mask: string; }): 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; RequestSeedApi({ msgId, }: { msgId: string; }): Promise; CancelSeedApi({ msgId, }: { msgId: string; }): Promise; DMResultsApi({ msgId }: { msgId: string; }): Promise; GetJobInfoApi({ limit, needResult }: { limit?: number; needResult?: string; }): 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; PanModalApi({ 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; SeedApi({ msgId, }: { msgId: 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; }