UNPKG

@mymj/midjourney

Version:

Node.js client for the unofficial MidJourney API.

17 lines (16 loc) 1.04 kB
import { MJInfo, MJOptions, MJSubscribe } from "../interfaces"; export declare const sleep: (ms: number) => Promise<void>; export declare const random: (min: number, max: number) => number; export declare const nextNonce: () => string; export declare const formatPrompts: (prompts: string) => string[]; export declare const formatOptions: (components: any) => MJOptions[]; export declare const componentsToHash: (components: any) => string | undefined; export declare const formatInfo: (msg: string) => MJInfo; export declare const formatSubscribe: (msg: MJSubscribe) => MJSubscribe; export declare const uriToHash: (uri: string) => string; export declare const filenameToHash: (filename: string) => string; export declare const content2progress: (content: string) => string; export declare const content2prompt: (content: string) => string; export declare function custom2Type(custom: string): string; export declare const toRemixCustom: (customID: string) => string; export declare function base64ToBlob(base64Image: string): Promise<Blob>;