/** Custom message carrying the node's session-start bearings. */ export declare const CONTEXT_INTRO_CUSTOM_TYPE = "crtr-context"; /** Custom message carrying an ambient situational-context update. */ export declare const SITUATIONAL_CONTEXT_CUSTOM_TYPE = "crtr-situational-context"; /** Custom message used when a context-size nudge waits for the next turn. */ export declare const CONTEXT_NUDGE_CUSTOM_TYPE = "crtr-context-nudge"; /** Custom message that opens a review companion's visible transcript. */ export declare const REVIEW_BOUNDARY_CUSTOM_TYPE = "crtr-review-boundary"; /** Generic completion mandate issued by the terminal-node stop guard. */ export declare const STALL_REPROMPT: string; /** The daemon's parking mandate for an isolated turn. It leaves current truth, * supporting material when needed, lasting lessons, and one deferred update; * the main conversation remains untouched and resumes without a fresh cycle. */ export declare const PARK_SUMMARY_PROMPT: string; /** Static recovery prompts shared by the broker producer and display classifier. */ export declare const AUTH_FAULT_RECOVERY_BODY = "Provider credentials were just updated (a new login landed). Your previous turn stopped on a provider authentication failure. Continue from where you left off and retry the work that failed."; export declare const CONNECTION_FAULT_RECOVERY_BODY = "The network connection is back online. Your previous turn stopped on a connection error (the network was down). Continue from where you left off and retry the work that failed."; export declare const PROVIDER_FAULT_RECOVERY_BODY = "Your previous turn stopped on a provider fault. Continue from where you left off and retry the work that failed."; export type ModelFallbackRecoveryReason = 'credential' | 'not-found'; /** Format the stop guard's dynamic structured-output mandate. */ export declare function formatStructuredOutputReprompt(schema: string): string; /** Keep model-fallback guidance editable without making it a reader contract. */ export declare function formatModelFallbackRecovery(previousModel: string, nextModel: string, reason: ModelFallbackRecoveryReason): string; export interface GeneratedContextMessageLike { role?: string; customType?: string; content?: unknown; } export type CardEntryDisposition = 'report' | 'human-answer' | 'human-canceled'; export interface CardEntry { disposition: CardEntryDisposition; kind: string; body: string; ref?: string; } export interface CardSender { id: string; updates: number; finished: boolean; entries: CardEntry[]; } /** An already-resolved inbox entry supplied to the pure digest formatter. */ export interface InboxCardEntry { kind: string; body: string; ref?: string; disposition?: CardEntryDisposition; } /** An already-resolved sender section supplied to the pure digest formatter. */ export interface InboxCardSection { id: string; entries: readonly InboxCardEntry[]; } export interface GeneratedCard { kind: string; facts: Readonly>; body: string; senders: CardSender[]; } /** Plain text from a generated message's string or text-block content. */ export declare function generatedContextText(message: GeneratedContextMessageLike): string; /** Wrap a user-role runtime message in its whole-message card envelope. */ export declare function formatCard(kind: string, facts: Record, body: string): string; /** Wrap a card whose body is DATA, not markup — the only escape on the API * path, so a caller can neither emit a malformed card nor smuggle markup into * one. `formatCard` keeps its raw body for the trusted crouter producers that * deliberately nest markup (bearings blocks, the inbox ``/`` * grammar `parseInboxBody` depends on). */ export declare function formatDataCard(kind: string, facts: Record, body: string): string; /** Parse a runtime envelope, with pre-envelope customType compatibility. */ export declare function parseCard(message: GeneratedContextMessageLike): GeneratedCard | null; /** Explain how an inbox entry's ref is read without guessing its filesystem location. */ export declare function formatInboxRefInstruction(ref: string): string; /** Format a complete inbox card from report bodies resolved by the caller. */ export declare function formatInboxCard(sections: readonly InboxCardSection[]): string;