@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
12 lines (11 loc) • 659 B
TypeScript
import type { FreeDiskSpaceStatus } from './FreeDiskSpaceStatus';
/**
* Measures the free disk space on the filesystem which hosts the given path.
*
* Note: `$` is used to indicate that this function is not a pure function - it reads the state of the filesystem
*
* @returns the measurement, or `null` when the filesystem can not be measured, for example on a platform which
* does not report filesystem statistics - a run is never stopped by a measurement which could not be taken
* @private internal utility of `promptbookCli`
*/
export declare function $readFreeDiskSpaceStatus(inspectedPath: string): Promise<FreeDiskSpaceStatus | null>;