mindee
Version:
Mindee Client Library for Node.js
19 lines (18 loc) • 654 B
TypeScript
/**
* @param {string} inputType - the type of input used in file ("base64", "path", "dummy").
* NB: dummy is only used for tests purposes
*/
export interface InputConstructor {
inputType: string;
}
export declare const INPUT_TYPE_STREAM = "stream";
export declare const INPUT_TYPE_BASE64 = "base64";
export declare const INPUT_TYPE_BYTES = "bytes";
export declare const INPUT_TYPE_PATH = "path";
export declare const INPUT_TYPE_BUFFER = "buffer";
export declare abstract class InputSource {
fileObject: Buffer | string;
protected initialized: boolean;
init(): Promise<void>;
isInitialized(): boolean;
}