import type { ChatMessage, ToolCall } from "../types.js"; import { preprocessJson } from "./parser/xml-protocol.js"; import { salvageTruncatedWrite } from "./parser/salvage.js"; export { isMutatingToolName, looksLikeTruncatedToolCall, parseAllToolCalls, parseToolCall, sameToolCall } from "./parser/parse-entry.js"; export type { ParseToolCallOptions } from "./parser/parse-entry.js"; export { inferToolFromArgs, recognizeBareToolJson } from "./parser/bare-recognition.js"; export { formatFsReadLineRange, formatToolArgs } from "./parser/arg-formatting.js"; export { collapseRepeatedText } from "./parser/repetition.js"; export { salvageTruncatedWrite }; export type { SalvagedWrite } from "./parser/salvage.js"; export { preprocessJson }; export declare function stripSentinelTokens(text: string): string; export declare function salvageTruncatedWriteFromNative(name: string, rawArguments: string | undefined): ReturnType; export declare function countToolFences(text: string): number; export declare function groupToolCallsForExecution(calls: ToolCall[], isParallelSafe: (call: ToolCall) => boolean, maxGroupSize?: number): ToolCall[][]; export declare function buildTurnHistory(messages: ChatMessage[], answer: string): ChatMessage[]; export declare function textBeforeToolCall(text: string): string; export declare function looksLikePentestTask(prompt: string, history?: ChatMessage[] | undefined): boolean; export declare function looksLikeBuildTask(prompt: string, history?: ChatMessage[] | undefined): boolean; export declare function looksLikeInformationalQuery(prompt: string): boolean; export declare function looksLikeErrorDiagnosisWithFixIntent(text: string): boolean; export declare function localHttpProbeIsFailure(output: string): boolean; export declare function localHttpProbeIsSuccess(output: string): boolean; export declare function looksLikeIdleOrSocialPrompt(prompt: string): boolean; export declare function looksLikeActionNarration(text: string): boolean; export declare function looksLikeWebActionNarration(text: string): boolean; export declare function looksLikePlanNarration(text: string): boolean; export declare function isLumpedSingleTask(taskTitles: string[]): boolean; export declare function buildWorkflowDirective(): string; export declare function narrowNmapOperationDirective(): string; export declare function pentestWorkflowDirective(): string; export declare function pentestNoLocalServerDirective(): string; export declare function shouldDimToolChatter(call: ToolCall): boolean; export declare function looksLikePromptLeak(text: string): boolean;