/**
 * Inline expression evaluator for pure dynamic functions.
 *
 * Evaluates serialized arrow functions from the lockfile (LockInlineValue)
 * in a sandboxed VM context at dispatch time, eliminating the init-job
 * round-trip for pure functions.
 */
import type { LockJob } from '@kici-dev/engine';
/**
 * Evaluate an inline expression that returns a string.
 *
 * @param expression - Serialized arrow function, e.g. '(event) => event.ref.split("/").pop()'
 * @param event - Normalized event envelope (SimulatedEvent shape; raw provider payload at event.payload)
 * @returns The string result
 * @throws TypeError if result is not a string
 * @throws Error on timeout or sandbox violation
 */
export declare function evaluateInlineString(expression: string, event: object): string;
/**
 * Evaluate an inline expression that returns a Record<string, string>.
 *
 * @param expression - Serialized arrow function, e.g. '(event) => ({ NODE_ENV: event.env })'
 * @param event - Normalized event envelope (SimulatedEvent shape; raw provider payload at event.payload)
 * @returns The record result
 * @throws TypeError if result is not a plain object
 * @throws Error on timeout or sandbox violation
 */
export declare function evaluateInlineRecord(expression: string, event: object): Record<string, string>;
/**
 * Evaluate a lock job's inline (pure-function) dynamic fields against the
 * normalized event envelope (SimulatedEvent shape: { type, action,
 * targetBranch, sourceBranch, payload, … }). The raw provider webhook body is
 * nested at `event.payload` — the same shape rules and step contexts see.
 *
 * Throws a job-attributed Error when any expression throws; inline evaluation
 * failures are immediate dispatch failures (no init-job fallback).
 */
export declare function evaluateInlineFields(lockJob: LockJob, event: object): {
    inlineEnvironmentName: string | undefined;
    inlineEnv: Record<string, string> | undefined;
    inlineConcurrencyGroup: string | undefined;
};
//# sourceMappingURL=inline-eval.d.ts.map