import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const LlmAnalyticsTextReprCreateInput: Schema.Struct<{
    readonly project_id: Schema.String;
    readonly event_type: Schema.optional<Schema.Literals<readonly ["$ai_generation", "$ai_span", "$ai_embedding", "$ai_trace"]>>;
    readonly data: Schema.optional<Schema.Unknown>;
    readonly options: Schema.optional<Schema.Struct<{
        readonly max_length: Schema.optional<Schema.Number>;
        readonly truncated: Schema.optional<Schema.Boolean>;
        readonly truncate_buffer: Schema.optional<Schema.Number>;
        readonly include_markers: Schema.optional<Schema.Boolean>;
        readonly collapsed: Schema.optional<Schema.Boolean>;
        readonly include_metadata: Schema.optional<Schema.Boolean>;
        readonly include_hierarchy: Schema.optional<Schema.Boolean>;
        readonly max_depth: Schema.optional<Schema.Number>;
        readonly tools_collapse_threshold: Schema.optional<Schema.Number>;
        readonly include_line_numbers: Schema.optional<Schema.Boolean>;
    }>>;
}>;
export type LlmAnalyticsTextReprCreateInput = typeof LlmAnalyticsTextReprCreateInput.Type;
export declare const LlmAnalyticsTextReprCreateOutput: Schema.Struct<{
    readonly text: Schema.optional<Schema.String>;
    readonly metadata: Schema.optional<Schema.Struct<{
        readonly event_type: Schema.optional<Schema.String>;
        readonly event_id: Schema.optional<Schema.String>;
        readonly trace_id: Schema.optional<Schema.String>;
        readonly rendering: Schema.optional<Schema.String>;
        readonly char_count: Schema.optional<Schema.Number>;
        readonly truncated: Schema.optional<Schema.Boolean>;
        readonly error: Schema.optional<Schema.String>;
    }>>;
}>;
export type LlmAnalyticsTextReprCreateOutput = typeof LlmAnalyticsTextReprCreateOutput.Type;
/**
 * Generate a human-readable text representation of an LLM trace event.
 * This endpoint converts LLM analytics events ($ai_generation, $ai_span, $ai_embedding, or $ai_trace)
 * into formatted text representations suitable for display, logging, or analysis.
 * **Supported Event Types:**
 * - `$ai_generation`: Individual LLM API calls with input/output messages
 * - `$ai_span`: Logical spans with state transitions
 * - `$ai_embedding`: Embedding generation events (text input → vector)
 * - `$ai_trace`: Full traces with hierarchical structure
 * **Options:**
 * - `max_length`: Maximum character count (default: 2000000)
 * - `truncated`: Enable middle-content truncation within events (default: true)
 * - `truncate_buffer`: Characters at start/end when truncating (default: 1000)
 * - `include_markers`: Use interactive markers vs plain text indicators (default: true)
 * - Frontend: set true for `<<<TRUNCATED|base64|...>>>` markers
 * - Backend/LLM: set false for `... (X chars truncated) ...` text
 * - `collapsed`: Show summary vs full trace tree (default: false)
 * - `include_hierarchy`: Include tree structure for traces (default: true)
 * - `max_depth`: Maximum depth for hierarchical rendering (default: unlimited)
 * - `tools_collapse_threshold`: Number of tools before auto-collapsing list (default: 5)
 * - Tool lists >5 items show `<<<TOOLS_EXPANDABLE|...>>>` marker for frontend
 * - Or `[+] AVAILABLE TOOLS: N` for backend when `include_markers: false`
 * - `include_line_numbers`: Prefix each line with line number like L001:, L010: (default: false)
 * **Use Cases:**
 * - Frontend display: `truncated: true, include_markers: true, include_line_numbers: true`
 * - Backend LLM context (summary): `truncated: true, include_markers: false, collapsed: true`
 * - Backend LLM context (full): `truncated: false`
 * The response includes the formatted text and metadata about the rendering.
 *
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 */
export declare const llmAnalyticsTextReprCreate: import("@distilled.cloud/core/client").OperationMethod<{
    readonly data?: unknown;
    readonly event_type?: "$ai_embedding" | "$ai_generation" | "$ai_span" | "$ai_trace" | undefined;
    readonly options?: {
        readonly collapsed?: boolean | undefined;
        readonly include_hierarchy?: boolean | undefined;
        readonly include_line_numbers?: boolean | undefined;
        readonly include_markers?: boolean | undefined;
        readonly include_metadata?: boolean | undefined;
        readonly max_depth?: number | undefined;
        readonly max_length?: number | undefined;
        readonly tools_collapse_threshold?: number | undefined;
        readonly truncate_buffer?: number | undefined;
        readonly truncated?: boolean | undefined;
    } | undefined;
    readonly project_id: string;
}, {
    readonly metadata?: {
        readonly char_count?: number | undefined;
        readonly error?: string | undefined;
        readonly event_id?: string | undefined;
        readonly event_type?: string | undefined;
        readonly rendering?: string | undefined;
        readonly trace_id?: string | undefined;
        readonly truncated?: boolean | undefined;
    } | undefined;
    readonly text?: string | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=llmAnalyticsTextReprCreate.d.ts.map