/** * Enumerable classification of a failed sandbox execution, derived from the * structured error the runtime already holds (the thrown error's `name`, or * the runtime's own typed failure). Carried on `ExecuteResult.errorKind` * beside the descriptive `error` string so telemetry can count failure * classes as identifiers without ever recording message content. */ export type ExecuteErrorKind = "syntax_error" | "type_error" | "reference_error" | "range_error" | "tool_error" | "timeout" | "resource_limit" | "serialization_error" | "thrown"; /** * Classify an error thrown inside the sandbox by its `name`. Runtimes tag * their own conditions with dedicated names (`ExecutionToolError` for a * failed tool-dispatch rethrow, `ExecutionTimeoutError` for the in-sandbox * deadline); anything unrecognized is the script's own `throw`. */ export declare const classifyThrownExecuteError: (errorName: string | null | undefined) => ExecuteErrorKind; //# sourceMappingURL=error-kind.d.ts.map