scriptable-testlab
Version:
A lightweight, efficient tool designed to manage and update scripts for Scriptable.
27 lines (25 loc) • 924 B
TypeScript
declare enum FileManagerType {
LOCAL = "local",
ICLOUD = "icloud"
}
declare const DEFAULT_ROOT_PATH: string;
declare const DEFAULT_BASE_DIRECTORIES: {
documents: string;
library: string;
cache: string;
temporary: string;
};
declare function normalizePath(filePath: string): string;
declare function joinPaths(...paths: string[]): string;
declare function getFileName(filePath: string): string;
declare function getFileExtension(filePath: string): string;
declare function getUTI(extension: string): string;
type FileUtils = {
normalizePath: typeof normalizePath;
joinPaths: typeof joinPaths;
getFileName: typeof getFileName;
getFileExtension: typeof getFileExtension;
getUTI: typeof getUTI;
};
declare const FileUtils: FileUtils;
export { DEFAULT_BASE_DIRECTORIES, DEFAULT_ROOT_PATH, FileManagerType, FileUtils, getFileExtension, getFileName, getUTI, joinPaths, normalizePath };