export declare function safeHook(fn: (input: I, output: O) => Promise): (input: I, output: O) => Promise; export declare function composeHandlers(...fns: Array<(input: I, output: O) => Promise>): (input: I, output: O) => Promise; declare function isFileValidationEnabled(): boolean; declare function getMaxFileBytes(): number; declare function getMaxScanDepth(): number; export declare function validateWriterPath(directory: string, filename: string): Promise; export declare function validateSwarmPath(directory: string, filename: string): Promise; export declare function checkFileSizeLimit(filePath: string): Promise; export declare function checkDirectoryDepth(currentDepth: number): void; export declare function isSymlink(filePath: string): Promise; export { getMaxFileBytes, getMaxScanDepth, isFileValidationEnabled }; export declare function readWriterFileAsync(directory: string, filename: string): Promise; export declare function readSwarmFileAsync(directory: string, filename: string): Promise;