export type { AncestorInfo } from "./ancestorWalk"; export { findHarnessAncestorPid } from "./ancestorWalk"; export declare const SESSION_PID_MARKER_ENV_VAR = "AGENT_ENABLE_SESSION_PID_MARKERS"; export declare const SESSION_PID_MARKER_ENV_VAR_DEPRECATED = "BABYSITTER_ENABLE_SESSION_PID_MARKERS"; export declare function isSessionPidMarkerEnabled(): boolean; export declare function __resetCacheForTests(): void; export declare function __setAncestorResolverForTests(fn: ((processNames: string[]) => import("./ancestorWalk").AncestorInfo | undefined) | undefined): void; export declare function getSessionMarkerPath(harness: string, ancestorPid: number): string; export declare function hasSessionMarkerCandidate(harness: string): boolean; export declare function writeSessionMarker(harness: string, sessionId: string): string | undefined; export declare function cleanupDeadSessionMarkers(): number; export declare function readSessionMarker(harness: string): string | undefined; export type SessionResolutionSource = "pid-marker" | "env-var" | "explicit" | "none"; export interface SessionMarkerDetails { sessionId: string; ancestorPid: number; ancestorAlive: boolean; } export interface SessionResolutionDetails { sessionId?: string; resolvedFrom: SessionResolutionSource; ancestorPid: number | null; ancestorAlive: boolean | null; } export declare function readSessionMarkerDetails(harness: string): SessionMarkerDetails | undefined; export declare function resolveSessionIdWithMarker(harness: string, parsed: { sessionId?: string; }, harnessEnvVars?: readonly string[]): string | undefined; export declare function resolveSessionIdWithMarkerDetailed(harness: string, parsed: { sessionId?: string; }, harnessEnvVars?: readonly string[]): SessionResolutionDetails; export declare function deriveProcessNames(harness: string): string[]; //# sourceMappingURL=sessionMarker.d.ts.map