import { type BlackboardClientDependencies } from './client.mts'; export type SessionStartOptions = { /** The parsed hook payload; unparseable stdin is `{}`. */ payload: Record; env?: NodeJS.ProcessEnv; /** Environment variable that, when `1`, skips the probe only. Defaults to CHECK_BLACKBOARD_SKIP. */ skipEnv?: string; /** Appended to the workspace-setup advisory: how this repository repairs its install. */ setupHint?: string; /** Appended to the outage advisory: where this repository documents the deployment. */ docsPath?: string; /** How this repository restores a missing journal server; appended to the sandbox advisory. */ restoreHint?: string; /** Deadline for the probe in milliseconds. Defaults to 5000. */ timeoutMs?: number; /** Called when the probe deadline passes, so a caller can force exit past a hung request. */ onTimeout?: () => void; dependencies?: BlackboardClientDependencies; /** Defaults to listing one session with the installed client. */ probe?: (env?: NodeJS.ProcessEnv, dependencies?: BlackboardClientDependencies) => Promise; }; /** The first valid, URL-safe session id in the payload, or undefined. */ export declare function payloadSessionId(payload: Record): string | undefined; /** The advisory line for the deployment probe, or undefined when it is skipped or healthy. */ export declare function probeAdvisory(options: SessionStartOptions): Promise; /** The `additionalContext` for a SessionStart hook, or undefined when there is nothing to say. */ export declare function sessionStartContext(options: SessionStartOptions): Promise; export declare function sessionStartOutput(context: string): string;