import FileFilter from './FileFilter.js'; import FilenameFilter from './FilenameFilter.js'; import Path from '../../java/nio/file/Path.js'; import Serializable from './Serializable.js'; export default interface File extends Serializable { canExecute(): boolean; canRead(): boolean; canWrite(): boolean; compareTo(pathname: File): number; compareTo(arg0: any): number; createNewFile(): boolean; delete(): boolean; deleteOnExit(): void; exists(): boolean; getAbsoluteFile(): File; getAbsolutePath(): string; getCanonicalFile(): File; getCanonicalPath(): string; getFreeSpace(): number; getName(): string; getParent(): string; getParentFile(): File; getPath(): string; getTotalSpace(): number; getUsableSpace(): number; isAbsolute(): boolean; isDirectory(): boolean; isFile(): boolean; isHidden(): boolean; lastModified(): number; length(): number; list(): Array; list(filter: FilenameFilter): Array; listFiles(): Array; listFiles(filter: FilenameFilter): Array; listFiles(filter: FileFilter): Array; mkdir(): boolean; mkdirs(): boolean; renameTo(dest: File): boolean; setExecutable(executable: boolean): boolean; setExecutable(executable: boolean, ownerOnly: boolean): boolean; setLastModified(time: number): boolean; setReadOnly(): boolean; setReadable(readable: boolean): boolean; setReadable(readable: boolean, ownerOnly: boolean): boolean; setWritable(writable: boolean): boolean; setWritable(writable: boolean, ownerOnly: boolean): boolean; toPath(): Path; toURI(): any; toURL(): any; } export default class File { static get $javaClass(): any; constructor(pathname: string); constructor(uri: any); constructor(parent: string, child: string); constructor(parent: File, child: string); static get pathSeparator(): string; static get pathSeparatorChar(): string; static get separator(): string; static get separatorChar(): string; static createTempFile(prefix: string, suffix: string): File; static createTempFile(prefix: string, suffix: string, directory: File): File; static listRoots(): Array; }