feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import type nodeTty from "node:tty";
export declare class WriteStream implements Partial<nodeTty.WriteStream> {
fd: number;
columns: number;
rows: number;
isTTY: boolean;
constructor(fd: number);
clearLine(dir: nodeTty.Direction, callback?: (() => void) | undefined): boolean;
clearScreenDown(callback?: (() => void) | undefined): boolean;
cursorTo(x: number, y?: number | undefined, callback?: (() => void) | undefined): boolean;
cursorTo(x: number, callback: () => void): boolean;
moveCursor(dx: number, dy: number, callback?: (() => void) | undefined): boolean;
getColorDepth(env?: object | undefined): number;
hasColors(count?: number | undefined): boolean;
hasColors(env?: object | undefined): boolean;
hasColors(count: number, env?: object | undefined): boolean;
getWindowSize(): [number, number];
write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
}