import type { ConversationBinding, DeliveryPreferenceFeedback, DeliveryPreferenceSelection, InboundEnvelope } from './types.js'; export type FeedbackSignalSelection = DeliveryPreferenceSelection & Readonly<{ interpretationTrust?: 'explicit-selection' | 'typed-feedback'; }>; export type ObjectiveFeedbackStatus = 'achieved' | 'partial' | 'not-achieved'; export type ObjectiveRevisionCommand = Readonly<{ kind: 'objective-revision'; action: 'correct' | 'withdraw'; expectedVersion: number; previousStatus: ObjectiveFeedbackStatus | 'unknown'; objectiveStatus: ObjectiveFeedbackStatus | 'unknown'; }>; export type ObjectiveCommand = Extract; export type ObjectiveCommandResult = 'conflict' | 'invalid-target' | 'recorded' | 'unavailable' | 'unknown' | Readonly<{ version: number; objectiveStatus: ObjectiveFeedbackStatus | 'unknown'; }>; /** Only whole, direct owner assertions are objective evidence. The reason remains untrusted text. */ export declare function parseNaturalObjectiveFeedback(text: string): ObjectiveFeedbackStatus | 'withdraw' | undefined; export declare function objectiveStateMessage(state: Readonly<{ version: number; objectiveStatus: string; }>): string; export type NaturalPreferenceSelection = Extract; /** * A closed classification boundary for natural-language presentation requests. * Only `ordinary-content` is safe to reuse as implicit language evidence. */ export type NaturalPreferenceDirectiveClassification = Readonly<{ kind: 'durable-exact-selection'; selection: NaturalPreferenceSelection; }> | Readonly<{ kind: 'one-turn-directive'; }> | Readonly<{ kind: 'ambiguous-or-unsupported-directive'; }> | Readonly<{ kind: 'ordinary-content'; }>; export type ParsedFeedbackCommand = ObjectiveRevisionCommand | { kind: 'objective-status'; } | { kind: 'invalid'; } | { kind: 'signals'; selections: readonly FeedbackSignalSelection[]; } | { kind: 'objective'; objectiveStatus: ObjectiveFeedbackStatus; }; export declare const feedbackUsage: string; /** Parse a closed, typed grammar. No caller-provided text crosses this boundary. */ export declare function parseFeedbackCommand(rawInput: string): ParsedFeedbackCommand; /** Build the exact Host-attested payload accepted by Preference Learning. */ export declare function feedbackSignalInput(binding: Readonly, envelope: Readonly, selection: Readonly, authorization: Readonly<{ occurredAt: number; principalLineage: Readonly; admissionCursor?: Readonly; exposureTarget?: Readonly<{ sourceInboxId: string; sourceOutboxId: string; }>; }>): DeliveryPreferenceFeedback; /** * Deterministic local language classifier. It never emits the source text and * deliberately abstains for short or genuinely mixed messages. */ export declare function observedResponseLanguage(text: string): 'zh-CN' | 'en' | undefined; /** * Classify a whole user message without interpreting arbitrary prose. Exact * supported directives are separated from directive-like mixtures; callers * must admit implicit behavior evidence only for `ordinary-content`. */ export declare function classifyNaturalPreferenceDirective(text: string): NaturalPreferenceDirectiveClassification; /** Closed whole-message grammar; quoted prose, code, multiline, and long text abstain. */ export declare function parseNaturalPreferenceCorrection(text: string): NaturalPreferenceSelection | undefined; /** One-turn style requests must not become durable preferences or opposite language evidence. */ export declare function isOneShotPreferenceRequest(text: string): boolean; //# sourceMappingURL=feedback-command.d.ts.map