import { CheckResult } from '../helpers'; import type { HealthIndicator } from '../types'; export interface FileSystemCheckOptions { /** * Absolute path to file or directory */ path: string; /** * Access mode (see fs.access docs on nodejs website) */ mode?: number; } /** * FileSystemIndicator checks if specified file or directory * exists and is accessible to the application * * TODO: Need to be tested! Especially modes. */ export declare abstract class FileSystemIndicator implements HealthIndicator { private path; private mode; constructor(options: FileSystemCheckOptions); /** * Проверяет, существует ли файл и есть ли к нему доступ */ check(): Promise; }