import * as Schema from "effect/Schema";
import { BadRequest, Forbidden, NotFound } from "../../errors.ts";
export declare const LlmAnalyticsSummarizationCreateInput: Schema.Struct<{
    readonly project_id: Schema.String;
    readonly summarize_type: Schema.optional<Schema.Literals<readonly ["trace", "event"]>>;
    readonly mode: Schema.optional<Schema.Literals<readonly ["minimal", "detailed"]>>;
    readonly data: Schema.optional<Schema.Unknown>;
    readonly force_refresh: Schema.optional<Schema.Boolean>;
    readonly model: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly trace_id: Schema.optional<Schema.String>;
    readonly generation_id: Schema.optional<Schema.String>;
    readonly date_from: Schema.optional<Schema.NullOr<Schema.String>>;
    readonly date_to: Schema.optional<Schema.NullOr<Schema.String>>;
}>;
export type LlmAnalyticsSummarizationCreateInput = typeof LlmAnalyticsSummarizationCreateInput.Type;
export declare const LlmAnalyticsSummarizationCreateOutput: Schema.Struct<{
    readonly summary: Schema.optional<Schema.Struct<{
        readonly title: Schema.optional<Schema.String>;
        readonly flow_diagram: Schema.optional<Schema.String>;
        readonly summary_bullets: Schema.optional<Schema.$Array<Schema.Struct<{
            readonly text: Schema.optional<Schema.String>;
            readonly line_refs: Schema.optional<Schema.String>;
        }>>>;
        readonly interesting_notes: Schema.optional<Schema.$Array<Schema.Struct<{
            readonly text: Schema.optional<Schema.String>;
            readonly line_refs: Schema.optional<Schema.String>;
        }>>>;
    }>>;
    readonly text_repr: Schema.optional<Schema.String>;
    readonly metadata: Schema.optional<Schema.Unknown>;
}>;
export type LlmAnalyticsSummarizationCreateOutput = typeof LlmAnalyticsSummarizationCreateOutput.Type;
/**
 * Generate an AI-powered summary of an LLM trace or event.
 * This endpoint analyzes the provided trace/event, generates a line-numbered text
 * representation, and uses an LLM to create a concise summary with line references.
 * **Two ways to use this endpoint:**
 * 1. **By ID (recommended):** Pass `trace_id` or `generation_id` with an optional `date_from`/`date_to`.
 * The backend fetches the data automatically. `summarize_type` is inferred.
 * 2. **By data:** Pass the full trace/event data blob in `data` with `summarize_type`.
 * This is how the frontend uses it.
 * **Summary Format:**
 * - Title (concise, max 10 words)
 * - Mermaid flow diagram showing the main flow
 * - 3-10 summary bullets with line references
 * - "Interesting Notes" section for failures, successes, or unusual patterns
 * - Line references in [L45] or [L45-52] format pointing to relevant sections
 * The response includes the structured summary, the text representation, and metadata.
 *
 * @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 llmAnalyticsSummarizationCreate: import("@distilled.cloud/core/client").OperationMethod<{
    readonly data?: unknown;
    readonly date_from?: string | null | undefined;
    readonly date_to?: string | null | undefined;
    readonly force_refresh?: boolean | undefined;
    readonly generation_id?: string | undefined;
    readonly mode?: "detailed" | "minimal" | undefined;
    readonly model?: string | null | undefined;
    readonly project_id: string;
    readonly summarize_type?: "event" | "trace" | undefined;
    readonly trace_id?: string | undefined;
}, {
    readonly metadata?: unknown;
    readonly summary?: {
        readonly flow_diagram?: string | undefined;
        readonly interesting_notes?: readonly {
            readonly line_refs?: string | undefined;
            readonly text?: string | undefined;
        }[] | undefined;
        readonly summary_bullets?: readonly {
            readonly line_refs?: string | undefined;
            readonly text?: string | undefined;
        }[] | undefined;
        readonly title?: string | undefined;
    } | undefined;
    readonly text_repr?: string | undefined;
}, BadRequest | Forbidden | NotFound, import("~/credentials.ts").Credentials>;
//# sourceMappingURL=llmAnalyticsSummarizationCreate.d.ts.map