UNPKG

khamba

Version:

A cli tool for sharing files through local network.

21 lines (20 loc) 1.12 kB
import { FileTypes } from '../types/storeTypes.js'; export declare function getRandomBanglaName(): string | undefined; export declare const hasNullValue: (obj: { [key: string]: any; }) => boolean; export declare const cleanFileName: (name: string) => string; export declare const isDirectory: (_path: string) => boolean; export declare const getAllFiles: (dirPath: string, arrayOfFiles?: string[]) => string[]; export declare const getFileType: (_path: string) => FileTypes; export declare const getFileSize: (_path: string) => number; export declare const getFolderSize: (_path: string) => number; export declare function checkFileExists(filePath: string): Promise<boolean>; export declare function getMissingFiles(files: string[]): Promise<string[]>; export declare const getDiskSpace: () => Promise<number>; export declare const formatBytes: (bytes: number) => string; export declare const findLongestString: (strings: string[]) => string | null; export declare const adjustStringLength: (str: string, length: number) => string; export declare const isObjectEmpty: (obj: { [key: string]: any; }) => boolean;