export interface ProcessIdentityDeps { platform?: NodeJS.Platform; readFile?: (path: string) => string; execFile?: (file: string, args: string[]) => string; } export type ProcessIdentityLookup = { status: 'found'; identity: string; } | { status: 'absent'; } | { status: 'error'; error: string; }; export type ProcessIdentityMatch = { status: 'match'; identity: string; } | { status: 'mismatch'; identity: string; } | { status: 'absent'; } | { status: 'error'; error: string; }; export declare function lookupProcessStartIdentity(pid: number, deps?: ProcessIdentityDeps): ProcessIdentityLookup; export declare function getProcessStartIdentity(pid: number, deps?: ProcessIdentityDeps): string | null; export declare function matchProcessStartIdentity(pid: number, expected: string, deps?: ProcessIdentityDeps): ProcessIdentityMatch; export declare function processIdentityMatches(pid: number, expected: string, deps?: ProcessIdentityDeps): boolean;