import { type Logger } from '@kyrielle/logger'; export declare class PidFile { readonly filename: string; readonly logger?: Logger | undefined; /** * @param filename path to the managed pid file * @param logger custom logger */ constructor(filename: string, logger?: Logger | undefined); private static _processIsRunning; /** * Creates pid file. If the pid file already exists tries to update it. * Returns true if the pid file was successfully created/updated, false otherwise. */ create(): Promise<'created' | 'updated' | false>; /** * Tries to update the pid file. * Returns true if the pid file was updated false otherwise. */ update(): Promise; /** * Deletes the pid file. */ delete(): Promise; }