export declare const WEAVE_COMMAND_ENVELOPE_TAG = "weave-command-envelope"; export declare const WEAVE_CONTINUATION_ENVELOPE_TAG = "weave-continuation-envelope"; export declare const WEAVE_PROTOCOL_VERSION = "1"; export declare const FINALIZE_TODOS_MARKER = ""; export type BuiltinCommandEnvelopeName = "start-work" | "run-workflow" | "metrics" | "token-report" | "weave-health"; export type ContinuationEnvelopeKind = "work" | "workflow" | "todo-finalize"; export interface BuiltinCommandEnvelope { kind: "builtin-command"; source: "envelope" | "legacy"; protocolVersion?: string; command: BuiltinCommandEnvelopeName; arguments: string; sessionId: string | null; timestamp: string | null; } export interface ContinuationEnvelope { kind: "continuation"; source: "envelope" | "legacy"; protocolVersion?: string; continuation: ContinuationEnvelopeKind; sessionId: string | null; planName?: string | null; planPath?: string | null; progress?: string | null; workingDirectory?: string | null; } export type ParsedWeaveEnvelope = BuiltinCommandEnvelope | ContinuationEnvelope; export declare function renderBuiltinCommandEnvelope(input: { command: BuiltinCommandEnvelopeName; arguments: string; sessionId?: string; timestamp?: string; }): string; export declare function renderContinuationEnvelope(input: { continuation: ContinuationEnvelopeKind; sessionId?: string; planName?: string; planPath?: string; progress?: string; workingDirectory?: string; }): string; export declare function parseEnvelopeBlock(text: string, tagName: string): Record | null;