import { fail } from 'peaks-loop-shared/result'; /** A daemon-supplied value that is expected to be a string, or `''`. */ export declare function text(value: unknown): string; /** A daemon-supplied value that is expected to be a count, or `0`. */ export declare function count(value: unknown): number; /** Resolve this project's session, or report `NO_SESSION` exactly once. */ export declare function resolveSession(): { projectRoot: string; sessionId: string; } | null; /** The shared `NO_SESSION` envelope for both lifecycle verbs. */ export declare function noSession(command: string): ReturnType;