/// /// import { Path } from "./file-core.dist"; declare class LocalPathSync extends Path { /** @returns absolute path to parent directory. */ get parent(): LocalDirectorySync; /** Create the parent directory of this.absolute. */ makeParent(): this; get shortPath(): string; get relativePath(): string; /** @returns an instance of the passed class, pointing to this.absolute, * and (hopefully) knowing what to do with the data at this.absolute. */ as(Ctor: U): T; exists(): import("fs").Stats; assert(): this; make(): this; /** @returns true if a directory exists at this.absolute */ isDirectory(name?: string): boolean; /** @returns true if a file exists at this.absolute */ isFile(name?: string): boolean; /** @returns true if this.absolute is a symlink. */ get isLink(): boolean; delete(): this; entrypoint(command: (argv: string[]) => T): T | undefined; get real(): this; get target(): this | null; /** Turn this entry into a symlink to `Path`. */ pointTo(path: string): this; /** Turn this entry into a symlink to an absolute path. */ absLink(path: string | Path): this; /** Turn this entry into a symlink to a relative path. */ relLink(path: string): this; static separator: "/" | "\\"; } declare class LocalDirectorySync extends LocalPathSync { resolve(path: string): string; make(): this; list(ext?: string): string[] | null; has(name: string): boolean; /** @returns Path to directory relative to this. */ file(...fragments: string[]): LocalFileSync; /** @returns Path to file relative to this. */ subdir(...fragments: string[]): LocalDirectorySync; } declare class LocalFileSync extends LocalPathSync { format: { load(data: unknown): T; save(data: unknown): any; }; setFormat(format: typeof this['format']): this; resolve(path: string): string; make(): this; loadBinary(): Uint8Array; loadRaw(encoding?: BufferEncoding): string; load(): T; saveBinary(data: Uint8Array): this; saveRaw(data: string, encoding?: BufferEncoding): this; save(data: any): this; edit(fn: (data: T) => T): this; sha256(): string; } export { LocalPathSync as Path, LocalFileSync as File, LocalDirectorySync as Directory }; //# sourceMappingURL=file-sync.d.ts.map