export type ProcessorInput = string | Buffer | ArrayBuffer | Uint8Array; export type BinaryOutput = Buffer | Uint8Array; export interface FileAdapter { readBinaryFromInput: (input: ProcessorInput) => Promise; readTextFromInput: (input: ProcessorInput, encoding?: BufferEncoding) => Promise; writeBinaryToPath: (outputPath: string, data: BinaryOutput) => Promise; writeTextToPath: (outputPath: string, text: string) => Promise; pathExists: (path: string) => Promise; isDirectory: (path: string) => Promise; getFileSize: (path: string) => Promise; mkDir: (path: string, options?: { recursive?: boolean; }) => Promise; listDir: (path: string) => Promise; removePath: (path: string, options?: { recursive?: boolean; force?: boolean; }) => Promise; mkTempDir: (prefix: string) => Promise; join: (...pathParts: string[]) => string; dirname: (path: string) => string; basename: (path: string, suffix?: string) => string; } type NodeRequire = (id: string) => any; export declare function getNodeRequire(): NodeRequire; export declare function getOs(): typeof import('os'); export declare function isNodeRuntime(): boolean; export declare function getBasename(filePath: string): string; export declare function toUint8Array(input: Uint8Array | ArrayBuffer | Buffer): Uint8Array; export declare function toArrayBuffer(input: Uint8Array | ArrayBuffer | Buffer): ArrayBuffer; export declare function decodeText(input: Uint8Array): string; export declare function encodeBase64(input: Uint8Array): string; export declare function encodeText(text: string): BinaryOutput; export declare function extname(path: string): string; export declare function joinWin32(...pathParts: string[]): string; export declare const defaultFileAdapter: FileAdapter; export {};