UNPKG

@dpkit/core

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

261 lines (260 loc) 19 kB
export declare const node: { fs: { default: typeof import("node:fs/promises"); access(path: import("fs").PathLike, mode?: number): Promise<void>; copyFile(src: import("fs").PathLike, dest: import("fs").PathLike, mode?: number): Promise<void>; open(path: import("fs").PathLike, flags?: string | number, mode?: import("fs").Mode): Promise<import("fs/promises").FileHandle>; rename(oldPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>; truncate(path: import("fs").PathLike, len?: number): Promise<void>; rmdir(path: import("fs").PathLike, options?: import("fs").RmDirOptions): Promise<void>; rm(path: import("fs").PathLike, options?: import("fs").RmOptions): Promise<void>; mkdir(path: import("fs").PathLike, options: import("fs").MakeDirectoryOptions & { recursive: true; }): Promise<string | undefined>; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | (import("fs").MakeDirectoryOptions & { recursive?: false | undefined; }) | null): Promise<void>; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | import("fs").MakeDirectoryOptions | null): Promise<string | undefined>; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise<string[]>; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined; recursive?: boolean | undefined; } | "buffer"): Promise<Buffer[]>; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise<string[] | Buffer[]>; readdir(path: import("fs").PathLike, options: import("fs").ObjectEncodingOptions & { withFileTypes: true; recursive?: boolean | undefined; }): Promise<import("fs").Dirent[]>; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean | undefined; }): Promise<import("fs").Dirent<Buffer>[]>; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; readlink(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | string | null): Promise<string | Buffer>; symlink(target: import("fs").PathLike, path: import("fs").PathLike, type?: string | null): Promise<void>; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise<import("fs").Stats>; lstat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise<import("fs").BigIntStats>; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise<import("fs").Stats | import("fs").BigIntStats>; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise<import("fs").Stats>; stat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise<import("fs").BigIntStats>; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise<import("fs").Stats | import("fs").BigIntStats>; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions & { bigint?: false | undefined; }): Promise<import("fs").StatsFs>; statfs(path: import("fs").PathLike, opts: import("fs").StatFsOptions & { bigint: true; }): Promise<import("fs").BigIntStatsFs>; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions): Promise<import("fs").StatsFs | import("fs").BigIntStatsFs>; link(existingPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>; unlink(path: import("fs").PathLike): Promise<void>; chmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise<void>; lchmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise<void>; lchown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>; lutimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise<void>; chown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>; utimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise<void>; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; realpath(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; mkdtemp(prefix: string, options: import("fs").BufferEncodingOption): Promise<Buffer>; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>; writeFile(file: import("fs").PathLike | import("fs/promises").FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | import("stream"), options?: (import("fs").ObjectEncodingOptions & { mode?: import("fs").Mode | undefined; flag?: import("fs").OpenMode | undefined; flush?: boolean | undefined; } & import("events").Abortable) | BufferEncoding | null): Promise<void>; appendFile(path: import("fs").PathLike | import("fs/promises").FileHandle, data: string | Uint8Array, options?: (import("fs").ObjectEncodingOptions & import("fs/promises").FlagAndOpenMode & { flush?: boolean | undefined; }) | BufferEncoding | null): Promise<void>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options?: ({ encoding?: null | undefined; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | null): Promise<Buffer>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options: ({ encoding: BufferEncoding; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | BufferEncoding): Promise<string>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options?: (import("fs").ObjectEncodingOptions & import("events").Abortable & { flag?: import("fs").OpenMode | undefined; }) | BufferEncoding | null): Promise<string | Buffer>; opendir(path: import("fs").PathLike, options?: import("fs").OpenDirOptions): Promise<import("fs").Dir>; watch(filename: import("fs").PathLike, options: (import("fs").WatchOptions & { encoding: "buffer"; }) | "buffer"): AsyncIterable<import("fs/promises").FileChangeInfo<Buffer>>; watch(filename: import("fs").PathLike, options?: import("fs").WatchOptions | BufferEncoding): AsyncIterable<import("fs/promises").FileChangeInfo<string>>; watch(filename: import("fs").PathLike, options: import("fs").WatchOptions | string): AsyncIterable<import("fs/promises").FileChangeInfo<string>> | AsyncIterable<import("fs/promises").FileChangeInfo<Buffer>>; cp(source: string | URL, destination: string | URL, opts?: import("fs").CopyOptions): Promise<void>; glob(pattern: string | readonly string[]): NodeJS.AsyncIterator<string>; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithFileTypes): NodeJS.AsyncIterator<import("fs").Dirent>; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>; glob(pattern: string | readonly string[], options: import("fs").GlobOptions): NodeJS.AsyncIterator<import("fs").Dirent | string>; constants: typeof import("fs").constants; }; path: { default: import("path").PlatformPath; normalize(path: string): string; join(...paths: string[]): string; resolve(...paths: string[]): string; matchesGlob(path: string, pattern: string): boolean; isAbsolute(path: string): boolean; relative(from: string, to: string): string; dirname(path: string): string; basename(path: string, suffix?: string): string; extname(path: string): string; sep: "\\" | "/"; delimiter: ";" | ":"; parse(path: string): import("path").ParsedPath; format(pathObject: import("path").FormatInputPathObject): string; toNamespacedPath(path: string): string; posix: import("path").PlatformPath; win32: import("path").PlatformPath; }; } | undefined; export declare function loadNodeApis(): Promise<{ fs: { default: typeof import("node:fs/promises"); access(path: import("fs").PathLike, mode?: number): Promise<void>; copyFile(src: import("fs").PathLike, dest: import("fs").PathLike, mode?: number): Promise<void>; open(path: import("fs").PathLike, flags?: string | number, mode?: import("fs").Mode): Promise<import("fs/promises").FileHandle>; rename(oldPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>; truncate(path: import("fs").PathLike, len?: number): Promise<void>; rmdir(path: import("fs").PathLike, options?: import("fs").RmDirOptions): Promise<void>; rm(path: import("fs").PathLike, options?: import("fs").RmOptions): Promise<void>; mkdir(path: import("fs").PathLike, options: import("fs").MakeDirectoryOptions & { recursive: true; }): Promise<string | undefined>; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | (import("fs").MakeDirectoryOptions & { recursive?: false | undefined; }) | null): Promise<void>; mkdir(path: import("fs").PathLike, options?: import("fs").Mode | import("fs").MakeDirectoryOptions | null): Promise<string | undefined>; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise<string[]>; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes?: false | undefined; recursive?: boolean | undefined; } | "buffer"): Promise<Buffer[]>; readdir(path: import("fs").PathLike, options?: (import("fs").ObjectEncodingOptions & { withFileTypes?: false | undefined; recursive?: boolean | undefined; }) | BufferEncoding | null): Promise<string[] | Buffer[]>; readdir(path: import("fs").PathLike, options: import("fs").ObjectEncodingOptions & { withFileTypes: true; recursive?: boolean | undefined; }): Promise<import("fs").Dirent[]>; readdir(path: import("fs").PathLike, options: { encoding: "buffer"; withFileTypes: true; recursive?: boolean | undefined; }): Promise<import("fs").Dirent<Buffer>[]>; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; readlink(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>; readlink(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | string | null): Promise<string | Buffer>; symlink(target: import("fs").PathLike, path: import("fs").PathLike, type?: string | null): Promise<void>; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise<import("fs").Stats>; lstat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise<import("fs").BigIntStats>; lstat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise<import("fs").Stats | import("fs").BigIntStats>; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions & { bigint?: false | undefined; }): Promise<import("fs").Stats>; stat(path: import("fs").PathLike, opts: import("fs").StatOptions & { bigint: true; }): Promise<import("fs").BigIntStats>; stat(path: import("fs").PathLike, opts?: import("fs").StatOptions): Promise<import("fs").Stats | import("fs").BigIntStats>; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions & { bigint?: false | undefined; }): Promise<import("fs").StatsFs>; statfs(path: import("fs").PathLike, opts: import("fs").StatFsOptions & { bigint: true; }): Promise<import("fs").BigIntStatsFs>; statfs(path: import("fs").PathLike, opts?: import("fs").StatFsOptions): Promise<import("fs").StatsFs | import("fs").BigIntStatsFs>; link(existingPath: import("fs").PathLike, newPath: import("fs").PathLike): Promise<void>; unlink(path: import("fs").PathLike): Promise<void>; chmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise<void>; lchmod(path: import("fs").PathLike, mode: import("fs").Mode): Promise<void>; lchown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>; lutimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise<void>; chown(path: import("fs").PathLike, uid: number, gid: number): Promise<void>; utimes(path: import("fs").PathLike, atime: import("fs").TimeLike, mtime: import("fs").TimeLike): Promise<void>; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; realpath(path: import("fs").PathLike, options: import("fs").BufferEncodingOption): Promise<Buffer>; realpath(path: import("fs").PathLike, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string>; mkdtemp(prefix: string, options: import("fs").BufferEncodingOption): Promise<Buffer>; mkdtemp(prefix: string, options?: import("fs").ObjectEncodingOptions | BufferEncoding | null): Promise<string | Buffer>; writeFile(file: import("fs").PathLike | import("fs/promises").FileHandle, data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | import("stream"), options?: (import("fs").ObjectEncodingOptions & { mode?: import("fs").Mode | undefined; flag?: import("fs").OpenMode | undefined; flush?: boolean | undefined; } & import("events").Abortable) | BufferEncoding | null): Promise<void>; appendFile(path: import("fs").PathLike | import("fs/promises").FileHandle, data: string | Uint8Array, options?: (import("fs").ObjectEncodingOptions & import("fs/promises").FlagAndOpenMode & { flush?: boolean | undefined; }) | BufferEncoding | null): Promise<void>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options?: ({ encoding?: null | undefined; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | null): Promise<Buffer>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options: ({ encoding: BufferEncoding; flag?: import("fs").OpenMode | undefined; } & import("events").Abortable) | BufferEncoding): Promise<string>; readFile(path: import("fs").PathLike | import("fs/promises").FileHandle, options?: (import("fs").ObjectEncodingOptions & import("events").Abortable & { flag?: import("fs").OpenMode | undefined; }) | BufferEncoding | null): Promise<string | Buffer>; opendir(path: import("fs").PathLike, options?: import("fs").OpenDirOptions): Promise<import("fs").Dir>; watch(filename: import("fs").PathLike, options: (import("fs").WatchOptions & { encoding: "buffer"; }) | "buffer"): AsyncIterable<import("fs/promises").FileChangeInfo<Buffer>>; watch(filename: import("fs").PathLike, options?: import("fs").WatchOptions | BufferEncoding): AsyncIterable<import("fs/promises").FileChangeInfo<string>>; watch(filename: import("fs").PathLike, options: import("fs").WatchOptions | string): AsyncIterable<import("fs/promises").FileChangeInfo<string>> | AsyncIterable<import("fs/promises").FileChangeInfo<Buffer>>; cp(source: string | URL, destination: string | URL, opts?: import("fs").CopyOptions): Promise<void>; glob(pattern: string | readonly string[]): NodeJS.AsyncIterator<string>; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithFileTypes): NodeJS.AsyncIterator<import("fs").Dirent>; glob(pattern: string | readonly string[], options: import("fs").GlobOptionsWithoutFileTypes): NodeJS.AsyncIterator<string>; glob(pattern: string | readonly string[], options: import("fs").GlobOptions): NodeJS.AsyncIterator<import("fs").Dirent | string>; constants: typeof import("fs").constants; }; path: { default: import("path").PlatformPath; normalize(path: string): string; join(...paths: string[]): string; resolve(...paths: string[]): string; matchesGlob(path: string, pattern: string): boolean; isAbsolute(path: string): boolean; relative(from: string, to: string): string; dirname(path: string): string; basename(path: string, suffix?: string): string; extname(path: string): string; sep: "\\" | "/"; delimiter: ";" | ":"; parse(path: string): import("path").ParsedPath; format(pathObject: import("path").FormatInputPathObject): string; toNamespacedPath(path: string): string; posix: import("path").PlatformPath; win32: import("path").PlatformPath; }; } | undefined>;