//#region src/domains/run/utils/select-filter.d.ts
declare function clearSelectorCache(): void;
/**
 * Strip internal fields (prefixed with _) from a tool result object.
 * Removes _structureHints, _toolCallId, etc. that are added for LLM context
 * but should not appear in traces, stored results, or downstream data.
 */
declare function stripInternalFields<T>(data: T): T;
/**
 * Sanitize JMESPath selector to fix common LLM syntax issues.
 * Extracted from ArtifactService for reuse in _select filtering.
 */
declare function sanitizeJMESPathSelector(selector: string): string;
/**
 * Apply a JMESPath SENTINEL_KEY.SELECT filter to resolved tool/artifact data.
 *
 * - Auto-strips `result.` prefix (matches _structureHints selector format)
 * - Sanitizes common LLM JMESPath errors
 * - Validates for security (injection patterns, length)
 * - Returns filtered data or null if selector matches nothing
 * - Throws ToolChainResolutionError on invalid expressions
 */
declare function applySelector(data: unknown, selector: string, toolCallId: string): unknown;
//#endregion
export { applySelector, clearSelectorCache, sanitizeJMESPathSelector, stripInternalFields };