2024-08-06 17:53:55 +02:00
|
|
|
export interface OutputByType {
|
2024-04-18 16:12:11 +05:00
|
|
|
base64: string
|
|
|
|
string: string
|
|
|
|
text: string
|
|
|
|
binarystring: string
|
|
|
|
array: number[]
|
|
|
|
uint8array: Uint8Array
|
|
|
|
arraybuffer: ArrayBuffer
|
|
|
|
blob: Blob
|
|
|
|
nodebuffer: Buffer
|
|
|
|
}
|
|
|
|
|
2024-07-17 11:25:02 +03:00
|
|
|
interface InputByType {
|
2024-08-06 17:53:55 +02:00
|
|
|
base64: string
|
|
|
|
string: string
|
|
|
|
text: string
|
|
|
|
binarystring: string
|
|
|
|
array: number[]
|
|
|
|
uint8array: Uint8Array
|
|
|
|
arraybuffer: ArrayBuffer
|
|
|
|
blob: Blob
|
|
|
|
stream: NodeJS.ReadableStream
|
2024-07-17 11:25:02 +03:00
|
|
|
}
|
|
|
|
|
2024-04-18 16:12:11 +05:00
|
|
|
export type OutputType = keyof OutputByType
|
2024-08-06 17:53:55 +02:00
|
|
|
export type InputFileFormat =
|
|
|
|
| InputByType[keyof InputByType]
|
|
|
|
| Promise<InputByType[keyof InputByType]>
|