/** ISO-8601 timestamp string (matches the runtime's `nowIso()` output). */ export type IsoTime = string; /** A node id — the existing `-` string. Typed as a nominal alias so * DTOs read as thin projections; validated at the boundary by `isSafeNodeId`. */ export type NodeIdDTO = string; /** Opaque pagination cursor (server-defined; clients pass it back verbatim). */ export type Cursor = string; /** Standard list-pagination inputs shared by paged queries. */ export interface Pagination { limit?: number; cursor?: Cursor; } /** Runtime status of a node (mirrors the runtime `NodeStatus` union; declared * locally to keep `/api` free of any `core/*` import). */ export type NodeStatusDTO = 'active' | 'idle' | 'done' | 'dead' | 'canceled'; /** Lifecycle class of a node (mirrors the runtime `Lifecycle` union). */ export type LifecycleDTO = 'terminal' | 'resident'; /** Execution mode of a node (mirrors the runtime `Mode` union). */ export type ModeDTO = 'base' | 'orchestrator'; /** Why a node last stopped (mirrors the runtime `ExitIntent` union). */ export type ExitIntentDTO = 'done' | 'refresh' | 'idle-release' | null; /** Inbox urgency tier for a delivered message (mirrors feed/inbox `InboxTier`). */ export type InboxTierDTO = 'critical' | 'urgent' | 'normal' | 'deferred'; /** Whether a node id is a safe single filesystem path segment. Re-declared here * (not imported from `core/canvas/paths.ts`) to keep the exported `/api` * contract dependency-light; kept byte-for-byte equivalent to the runtime's. */ export declare function isSafeNodeId(id: string): boolean;