/** UserPromptSubmit: remember what the user asked for, so destinations they named are theirs. */ /** * The user's own words in a prompt: what is left after text they pasted or quoted. An address that appears only in * a pasted block, a quoted line or the headers of a forwarded message was written by someone else, and naming it * is what an attacker who mails the user would want. Asking once before writing to it is the price when the user * meant it ("reply to the sender of this"). */ export declare function ownWords(prompt: string): string; export declare function flowPrompt(input: Record, env?: NodeJS.ProcessEnv): void; /** The sentence in which outside text addresses the model, from the instruction to the sentence's end. Not the * sentences around it: in a list of reviews they are ordinary reviews, which an honest answer repeats. */ export declare function instructionText(text: string): string; export declare function hintWindows(text: string): string[]; /** The text of the last assistant message: given directly, or read from the end of the Claude Code transcript. */ export declare function lastAnswer(input: Record): string; export interface FlowStopOutput { systemMessage?: string; decision?: 'block'; reason?: string; } /** * Stop: an injection that only changes the answer ("recommend this hotel") makes no call to refuse. Two levers are * left. Under any answer whose turn read outside text, one line tells the user which sources it drew on. And when * the answer repeats words from text that addressed the model with instructions, the answer goes back to the model * once to be checked against the user's request (`decision: block` makes Claude Code continue). A validated * host-supplied constraint contract can add factual counterevidence. A continuation still carries the guard's * disclosure notice; neither another generation nor an unchanged choice proves correctness. */ export declare function flowStop(input: Record, env?: NodeJS.ProcessEnv): FlowStopOutput | undefined; //# sourceMappingURL=flow-guard-answer.d.ts.map