huoshan/huoshan.ts
2024-10-13 11:55:28 +08:00

21 lines
617 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
image: {
text2image,
image2image,
readImage,
base64
}
}
//about image
function text2image(prompt:string, option?:Object):string {return ""}
// image2image
// image able with base64, bin(byte[], what you get from "readImage"), urlurl must be written in an array like ["your url"]
function image2image(image, prompt:string, option?:Object):string {return ""}
function readImage(path:string):string {return ""}
// base64 written-in base64 functionyou can use what you want
// data give what you want to give
function base64(data):string {return ""}