/**
 * `text_pattern_match` primitive — generic regex check on event text fields.
 *
 * Used by G.5's `verify-before-citing-memory` skill to scan a Stop event's
 * `assistantText` for drift-prone phrases ("per memory", "the plan is",
 * "deferred", etc.). Generic by design — the pattern list and the field
 * path are both pack-authored, so the same primitive serves any future
 * "watch event text for these phrases" skill.
 *
 * Field extraction: `text_field` supports dot notation
 * (`assistantText`, `payload.body.text`) via a null-safe traversal — a
 * missing segment yields `undefined` rather than throwing. The primitive
 * gracefully degrades to `{ matched: [], phrases: [] }` when the path
 * does not resolve to a string.
 *
 * Per-pattern execution-time cap (per G.5 spec Phase-2 lock #5): each
 * pattern's `exec` loop is bounded by 10ms wall-clock. If the loop
 * exceeds the budget we log a stderr warning and skip the remaining
 * matches for THAT pattern (other patterns continue). Word-boundary
 * patterns shouldn't hit the cap in practice; the guard is defensive
 * against future authors who might add a catastrophic-backtracking
 * regex by accident.
 *
 * Error model: returns `arg_invalid` if a regex literal is malformed.
 * Never throws — this is a runtime primitive inside a hook bin.
 *
 * Imports from: zod, ../runtime/result.js, ./registry.js.
 * Imported by: src/runtime/bootstrap.ts (registry wiring).
 */
import { z } from 'zod';
import type { FunctionDef } from './registry.js';
export declare const TextPatternMatchArgs: z.ZodObject<{
    text_field: z.ZodString;
    patterns: z.ZodArray<z.ZodString, "many">;
    case_sensitive: z.ZodDefault<z.ZodBoolean>;
}, "strict", z.ZodTypeAny, {
    text_field: string;
    patterns: string[];
    case_sensitive: boolean;
}, {
    text_field: string;
    patterns: string[];
    case_sensitive?: boolean | undefined;
}>;
interface TextPatternMatchResult {
    matched: string[];
    phrases: {
        phrase: string;
        offset: number;
    }[];
}
export declare const TextPatternMatch: FunctionDef<z.input<typeof TextPatternMatchArgs>, TextPatternMatchResult>;
export {};
//# sourceMappingURL=text_pattern_match.d.ts.map