import type { InboundEnvelope } from './types.js'; export interface ParsedDeliveryCommand { name: string; rawInput: string; } export type PermissionDispatchRecovery = 'cancelled' | 'commit' | 'failure-notice'; /** * Parse the same conservative slash grammar used by DSH's command plane. * The command must start at byte zero and names stay lowercase so a channel * never normalizes an unknown prompt into a privileged control operation. */ export declare function parseDeliveryCommand(envelope: Readonly>): ParsedDeliveryCommand | undefined; export declare function isExactDeliveryCommand(command: ParsedDeliveryCommand | undefined, ...names: readonly string[]): boolean; export declare function isPermissionDeliveryCommand(envelope: Readonly>): boolean; /** Typed feedback dispatches only replay-safe idempotent Host ledger writes. */ export declare function isFeedbackDeliveryCommand(envelope: Readonly>): boolean; /** Workflow commands commit only idempotent owner-ledger revisions. */ export declare function isWorkflowDeliveryCommand(envelope: Readonly>): boolean; /** Learning controls commit only idempotent owner-scoped Preference mutations. */ export declare function isLearningDeliveryCommand(envelope: Readonly>): boolean; export declare const feedbackDispatchRecoveryCode: "feedback-dispatch-recovery"; export declare const workflowDispatchRecoveryCode: "workflow-dispatch-recovery"; export declare const learningDispatchRecoveryCode: "learning-dispatch-recovery"; export declare function isLearningDispatchRecoveryCode(value: string | undefined): boolean; export declare function isWorkflowDispatchRecoveryCode(value: string | undefined): boolean; export declare function isFeedbackDispatchRecoveryCode(value: string | undefined): boolean; export declare function isFeedbackRetryableFailureCode(value: string | undefined): boolean; export declare function isLearningRetryableFailureCode(value: string | undefined): boolean; export declare function permissionDispatchRecoveryCode(recovery: PermissionDispatchRecovery): string; export declare function permissionDispatchRecoveryFromFailureCode(failureCode: string | undefined): PermissionDispatchRecovery | undefined; //# sourceMappingURL=session-commands.d.ts.map