import { Buffer } from "node:buffer"; /** * @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"; /** * Abstract class for input sources. */ export declare abstract class InputSource { /** * The file object used by the input source. */ fileObject: Buffer | string; /** * Whether the input source has been initialized. * @protected */ protected initialized: boolean; /** * Initializes the input source and populates its file object. */ init(): Promise; /** * Returns whether the input source has been initialized. */ isInitialized(): boolean; }