export declare const INTERNAL_HOST_DIR_PREFIX = "senpi-rpc-host-internal-";
/**
 * Where the internal hop directories may live: the OS temp directory first, then `/tmp` for a
 * temp directory too deep for sun_path (a nested per-user or per-job TMPDIR, senpi#3487). The
 * reaper scans the same roots, so a hop placed in the fallback is still collected.
 */
export declare function internalHostDirRoots(): readonly string[];
/**
 * The internal hop must stay short enough for sun_path (104 bytes on macOS)
 * regardless of where the public socket lives, and private against other local
 * users, so it gets its own 0700 directory under the OS temp directory, or under
 * `/tmp` when the temp directory itself is too deep (senpi#3487).
 *
 * On win32 the directory lives under the caller-supplied rpc-host-daemon
 * directory, which ensureHost() creates but a direct --internal-rpc-host-supervisor
 * launch does not, so the parent is created recursively.
 */
export declare function createInternalSocketPath(baseDir?: string, platform?: NodeJS.Platform): Promise<{
    socket: string;
    dir?: string;
    secretPath?: string;
}>;
/**
 * Best-effort, 0600, by rename; released with the generation directory.
 *
 * The pid is recorded at once and its start time added when it can be read, the way the supervisor's own
 * record is (`host-ensure-start.ts`): a bounded wait of 1 s probes, then one unhurried read. A single
 * 1 s CIM probe fired right after spawn came back empty on every Windows generation (#3658). An identity
 * read after the child exited is never recorded: its pid may already name an unrelated process.
 */
export declare function recordChildPid(file: string, pid: number, running: () => boolean): Promise<void>;
export declare function readSettingsFile(settingsFile: string): Promise<unknown>;
//# sourceMappingURL=host-lifecycle-scratch.d.ts.map