mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
2.0 KiB
21 lines
2.0 KiB
import { TEncodingExtended } from '@jsonjoy.com/fs-node-utils';
|
|
import { Buffer } from '@jsonjoy.com/fs-node-builtins/lib/internal/buffer';
|
|
import { Readable } from '@jsonjoy.com/fs-node-builtins/lib/stream';
|
|
import { StatError } from '@jsonjoy.com/fs-core';
|
|
import type { FsCallbackApi } from '@jsonjoy.com/fs-node-utils';
|
|
import type * as misc from '@jsonjoy.com/fs-node-utils/lib/types/misc';
|
|
export declare function promisify(fs: FsCallbackApi, fn: string, getResult?: (result: any) => any): (...args: any[]) => Promise<any>;
|
|
export declare function validateCallback<T>(callback: T): misc.AssertCallback<T>;
|
|
export declare function modeToNumber(mode: misc.TMode | undefined, def?: any): number;
|
|
export declare function nullCheck(path: any, callback?: any): boolean;
|
|
export declare function pathToFilename(path: misc.PathLike): string;
|
|
export declare function createError(errorCode: string, func?: string, path?: string, path2?: string, Constructor?: ErrorConstructor): Error;
|
|
export declare function createStatError(errorCode: string, func?: string, path?: string, path2?: string): StatError;
|
|
export declare function genRndStr6(): string;
|
|
export declare function flagsToNumber(flags: misc.TFlags | undefined): number;
|
|
export declare function streamToBuffer(stream: Readable): Promise<Buffer<ArrayBufferLike>>;
|
|
export declare const bufToUint8: (buf: Buffer) => Uint8Array;
|
|
export declare const getWriteArgs: (fd: number, a?: unknown, b?: unknown, c?: unknown, d?: unknown, e?: unknown) => [fd: number, dataAsStr: boolean, buf: Buffer, offset: number, length: number, position: number | null, callback: (...args: any) => void];
|
|
export declare const getWriteSyncArgs: (fd: number, a: string | Buffer | ArrayBufferView | DataView, b?: number, c?: number | BufferEncoding, d?: number | null) => [fd: number, buf: Buffer, offset: number, length?: number, position?: number | null];
|
|
export declare function bufferToEncoding(buffer: Buffer, encoding?: TEncodingExtended): misc.TDataOut;
|
|
export declare function isReadableStream(stream: any): stream is Readable;
|
|
|