import { z } from 'zod/v4';
import { SpanType } from '../../../observability/types/index.js';
import { traceIdField, spanIdField } from '../shared.js';
export { traceIdField, spanIdField };
/** Derived status of a trace, computed from the root span's error and endedAt fields. */
export declare enum TraceStatus {
    SUCCESS = "success",
    ERROR = "error",
    RUNNING = "running"
}
/** Shape containing trace and span identifier fields */
export declare const spanIds: {
    readonly traceId: z.ZodString;
    readonly spanId: z.ZodString;
};
/** Schema for span identifiers (traceId and spanId) */
export declare const spanIdsSchema: z.ZodObject<{
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>;
/** Span identifier pair (traceId and spanId) */
export type SpanIds = z.infer<typeof spanIdsSchema>;
/** Schema for a complete span record as stored in the database */
export declare const spanRecordSchema: z.ZodObject<{
    createdAt: z.ZodDate;
    updatedAt: z.ZodNullable<z.ZodDate>;
    experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
    input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
    requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
    source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    name: z.ZodString;
    spanType: z.ZodEnum<typeof SpanType>;
    isEvent: z.ZodBoolean;
    startedAt: z.ZodDate;
    parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>;
/** Complete span record as stored in the database */
export type SpanRecord = z.infer<typeof spanRecordSchema>;
/**
 * Computes the trace status from a root span's error and endedAt fields.
 * - ERROR: if error is present (regardless of endedAt)
 * - RUNNING: if endedAt is null/undefined and no error
 * - SUCCESS: if endedAt is present and no error
 */
export declare function computeTraceStatus(span: {
    error?: unknown;
    endedAt?: Date | string | null;
}): TraceStatus;
/** Schema for a trace span (root span with computed status) */
export declare const traceSpanSchema: z.ZodObject<{
    createdAt: z.ZodDate;
    updatedAt: z.ZodNullable<z.ZodDate>;
    experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
    input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
    requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
    source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    name: z.ZodString;
    spanType: z.ZodEnum<typeof SpanType>;
    isEvent: z.ZodBoolean;
    startedAt: z.ZodDate;
    parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    traceId: z.ZodString;
    spanId: z.ZodString;
    status: z.ZodEnum<typeof TraceStatus>;
}, z.core.$strip>;
/** Trace span (root span with computed status) */
export type TraceSpan = z.infer<typeof traceSpanSchema>;
/**
 * Converts a SpanRecord to a TraceSpan by adding computed status.
 * Used when returning root spans from listTraces.
 */
export declare function toTraceSpan(span: SpanRecord): TraceSpan;
/**
 * Converts an array of SpanRecords to TraceSpans by adding computed status.
 * Used when returning root spans from listTraces.
 */
export declare function toTraceSpans(spans: SpanRecord[]): TraceSpan[];
/**
 * Schema for creating a span (without db timestamps)
 */
export declare const createSpanRecordSchema: z.ZodObject<{
    error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    name: z.ZodString;
    traceId: z.ZodString;
    spanId: z.ZodString;
    spanType: z.ZodEnum<typeof SpanType>;
    isEvent: z.ZodBoolean;
    startedAt: z.ZodDate;
    parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
    endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
    tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>;
/** Span record for creation (excludes db timestamps) */
export type CreateSpanRecord = z.infer<typeof createSpanRecordSchema>;
/**
 * Schema for createSpan operation arguments
 */
export declare const createSpanArgsSchema: z.ZodObject<{
    span: z.ZodObject<{
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        name: z.ZodString;
        traceId: z.ZodString;
        spanId: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    }, z.core.$strip>;
}, z.core.$strip>;
/** Arguments for creating a single span */
export type CreateSpanArgs = z.infer<typeof createSpanArgsSchema>;
/**
 * Schema for batchCreateSpans operation arguments
 */
export declare const batchCreateSpansArgsSchema: z.ZodObject<{
    records: z.ZodArray<z.ZodObject<{
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        name: z.ZodString;
        traceId: z.ZodString;
        spanId: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Arguments for batch creating multiple spans */
export type BatchCreateSpansArgs = z.infer<typeof batchCreateSpansArgsSchema>;
/**
 * Schema for getSpan operation arguments
 */
export declare const getSpanArgsSchema: z.ZodObject<{
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>;
/** Arguments for retrieving a single span */
export type GetSpanArgs = z.infer<typeof getSpanArgsSchema>;
/**
 * Response schema for getSpan operation
 */
export declare const getSpanResponseSchema: z.ZodObject<{
    span: z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
    }, z.core.$strip>;
}, z.core.$strip>;
/** Response containing a single span */
export type GetSpanResponse = z.infer<typeof getSpanResponseSchema>;
/**
 * Schema for getRootSpan operation arguments
 */
export declare const getRootSpanArgsSchema: z.ZodObject<{
    traceId: z.ZodString;
}, z.core.$strip>;
/** Arguments for retrieving a root span */
export type GetRootSpanArgs = z.infer<typeof getRootSpanArgsSchema>;
/**
 * Response schema for getRootSpan operation
 */
export declare const getRootSpanResponseSchema: z.ZodObject<{
    span: z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
    }, z.core.$strip>;
}, z.core.$strip>;
/** Response containing a single root span */
export type GetRootSpanResponse = z.infer<typeof getRootSpanResponseSchema>;
/**
 * Schema for getTrace operation arguments
 */
export declare const getTraceArgsSchema: z.ZodObject<{
    traceId: z.ZodString;
}, z.core.$strip>;
/** Arguments for retrieving a single trace */
export type GetTraceArgs = z.infer<typeof getTraceArgsSchema>;
/**
 * Response schema for getTrace operation
 */
export declare const getTraceResponseSchema: z.ZodObject<{
    traceId: z.ZodString;
    spans: z.ZodArray<z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Response containing a trace with all its spans */
export type GetTraceResponse = z.infer<typeof getTraceResponseSchema>;
/** Alias for GetTraceResponse -- a trace with all its spans. */
export type TraceRecord = GetTraceResponse;
/**
 * Lightweight span record containing only the fields needed for timeline rendering.
 * Excludes heavy fields: input, output, attributes, metadata, tags, links.
 * This reduces per-span payload from ~17KB to ~370 bytes (~97% reduction).
 */
export declare const lightSpanRecordSchema: z.ZodObject<{
    createdAt: z.ZodDate;
    updatedAt: z.ZodNullable<z.ZodDate>;
    name: z.ZodString;
    spanType: z.ZodEnum<typeof SpanType>;
    isEvent: z.ZodBoolean;
    startedAt: z.ZodDate;
    parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
    error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>;
/** Lightweight span record for timeline rendering */
export type LightSpanRecord = z.infer<typeof lightSpanRecordSchema>;
/**
 * Response schema for getTraceLight operation.
 * Returns a trace with lightweight spans (only fields needed for timeline).
 */
export declare const getTraceLightResponseSchema: z.ZodObject<{
    traceId: z.ZodString;
    spans: z.ZodArray<z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Response containing a trace with lightweight spans for timeline rendering */
export type GetTraceLightResponse = z.infer<typeof getTraceLightResponseSchema>;
/** Schema for filtering traces in list queries */
export declare const tracesFilterSchema: z.ZodObject<{
    status: z.ZodOptional<z.ZodEnum<typeof TraceStatus>>;
    hasChildError: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
    source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    startedAt: z.ZodOptional<z.ZodObject<{
        start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
        end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
        startExclusive: z.ZodOptional<z.ZodBoolean>;
        endExclusive: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strip>>;
    endedAt: z.ZodOptional<z.ZodObject<{
        start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
        end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
        startExclusive: z.ZodOptional<z.ZodBoolean>;
        endExclusive: z.ZodOptional<z.ZodBoolean>;
    }, z.core.$strip>>;
    spanType: z.ZodOptional<z.ZodEnum<typeof SpanType>>;
    traceId: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
/**
 * Fields available for ordering trace results
 */
export declare const tracesOrderByFieldSchema: z.ZodEnum<{
    startedAt: "startedAt";
    endedAt: "endedAt";
}>;
/**
 * Order by configuration for trace queries
 * Follows the existing StorageOrderBy pattern
 * Defaults to startedAt desc (newest first)
 */
export declare const tracesOrderBySchema: z.ZodObject<{
    field: z.ZodDefault<z.ZodEnum<{
        startedAt: "startedAt";
        endedAt: "endedAt";
    }>>;
    direction: z.ZodDefault<z.ZodEnum<{
        ASC: "ASC";
        DESC: "DESC";
    }>>;
}, z.core.$strip>;
/**
 * Arguments for listing traces
 */
export declare const listTracesArgsSchema: z.ZodObject<{
    filters: z.ZodOptional<z.ZodObject<{
        status: z.ZodOptional<z.ZodEnum<typeof TraceStatus>>;
        hasChildError: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        startedAt: z.ZodOptional<z.ZodObject<{
            start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
            end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
            startExclusive: z.ZodOptional<z.ZodBoolean>;
            endExclusive: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strip>>;
        endedAt: z.ZodOptional<z.ZodObject<{
            start: z.ZodOptional<z.ZodCoercedDate<unknown>>;
            end: z.ZodOptional<z.ZodCoercedDate<unknown>>;
            startExclusive: z.ZodOptional<z.ZodBoolean>;
            endExclusive: z.ZodOptional<z.ZodBoolean>;
        }, z.core.$strip>>;
        spanType: z.ZodOptional<z.ZodEnum<typeof SpanType>>;
        traceId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
    pagination: z.ZodDefault<z.ZodObject<{
        page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
        perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
    }, z.core.$strip>>;
    orderBy: z.ZodDefault<z.ZodObject<{
        field: z.ZodDefault<z.ZodEnum<{
            startedAt: "startedAt";
            endedAt: "endedAt";
        }>>;
        direction: z.ZodDefault<z.ZodEnum<{
            ASC: "ASC";
            DESC: "DESC";
        }>>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Arguments for listing traces with optional filters, pagination, and ordering */
export type ListTracesArgs = z.input<typeof listTracesArgsSchema>;
/** Schema for listTraces operation response */
export declare const listTracesResponseSchema: z.ZodObject<{
    pagination: z.ZodObject<{
        total: z.ZodNumber;
        page: z.ZodNumber;
        perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
        hasMore: z.ZodBoolean;
    }, z.core.$strip>;
    spans: z.ZodArray<z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
        input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
        endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
        requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
        rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
        status: z.ZodEnum<typeof TraceStatus>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Response containing paginated root spans with computed status */
export type ListTracesResponse = z.infer<typeof listTracesResponseSchema>;
/**
 * Schema for updating a span (without db timestamps and span IDs)
 */
export declare const updateSpanRecordSchema: z.ZodObject<{
    error: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    runId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    input: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    resourceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
    metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    name: z.ZodString;
    spanType: z.ZodEnum<typeof SpanType>;
    isEvent: z.ZodBoolean;
    startedAt: z.ZodDate;
    parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    experimentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    links: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
    endedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
    tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
    entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>;
    rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    organizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    sessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    requestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    environment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
    entityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    parentEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
    rootEntityVersionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, z.core.$strip>;
/** Partial span data for updates (excludes db timestamps and span IDs) */
export type UpdateSpanRecord = z.infer<typeof updateSpanRecordSchema>;
/**
 * Schema for updateSpan operation arguments
 */
export declare const updateSpanArgsSchema: z.ZodObject<{
    spanId: z.ZodString;
    traceId: z.ZodString;
    updates: z.ZodObject<{
        error: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
        runId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        requestContext: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
        input: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
        source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        threadId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        resourceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        output: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
        metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
        name: z.ZodOptional<z.ZodString>;
        spanType: z.ZodOptional<z.ZodEnum<typeof SpanType>>;
        isEvent: z.ZodOptional<z.ZodBoolean>;
        startedAt: z.ZodOptional<z.ZodDate>;
        parentSpanId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        experimentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        attributes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
        links: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>>;
        endedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
        tags: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
        entityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
        entityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        entityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        parentEntityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
        parentEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        parentEntityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        rootEntityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
        rootEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        rootEntityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        userId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        organizationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        sessionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        requestId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        environment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        serviceName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        scope: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
        entityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        parentEntityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        rootEntityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
    }, z.core.$strip>;
}, z.core.$strip>;
/** Arguments for updating a single span */
export type UpdateSpanArgs = z.infer<typeof updateSpanArgsSchema>;
/**
 * Schema for batchUpdateSpans operation arguments
 */
export declare const batchUpdateSpansArgsSchema: z.ZodObject<{
    records: z.ZodArray<z.ZodObject<{
        traceId: z.ZodString;
        spanId: z.ZodString;
        updates: z.ZodObject<{
            error: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
            runId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            requestContext: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
            input: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
            source: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            threadId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            resourceId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            output: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodUnknown>>>;
            metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
            name: z.ZodOptional<z.ZodString>;
            spanType: z.ZodOptional<z.ZodEnum<typeof SpanType>>;
            isEvent: z.ZodOptional<z.ZodBoolean>;
            startedAt: z.ZodOptional<z.ZodDate>;
            parentSpanId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            experimentId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            attributes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
            links: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>>;
            endedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
            tags: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>;
            entityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
            entityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            entityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            parentEntityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
            parentEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            parentEntityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            rootEntityType: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("../../../_types/@internal_core/dist/index.js").EntityType>>>>;
            rootEntityId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            rootEntityName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            userId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            organizationId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            sessionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            requestId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            environment: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            serviceName: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            scope: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
            entityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            parentEntityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
            rootEntityVersionId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
        }, z.core.$strip>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Arguments for batch updating multiple spans */
export type BatchUpdateSpansArgs = z.infer<typeof batchUpdateSpansArgsSchema>;
/**
 * Schema for batchDeleteTraces operation arguments
 */
export declare const batchDeleteTracesArgsSchema: z.ZodObject<{
    traceIds: z.ZodArray<z.ZodString>;
}, z.core.$strip>;
/** Arguments for batch deleting multiple traces */
export type BatchDeleteTracesArgs = z.infer<typeof batchDeleteTracesArgsSchema>;
/** Schema for listScoresBySpan operation response */
export declare const listScoresBySpanResponseSchema: z.ZodObject<{
    pagination: z.ZodObject<{
        total: z.ZodNumber;
        page: z.ZodNumber;
        perPage: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<false>]>;
        hasMore: z.ZodBoolean;
    }, z.core.$strip>;
    scores: z.ZodArray<z.ZodObject<{
        createdAt: z.ZodDate;
        updatedAt: z.ZodNullable<z.ZodDate>;
        id: z.ZodString;
        scorerId: z.ZodString;
        entityId: z.ZodString;
        runId: z.ZodString;
        input: z.ZodOptional<z.ZodUnknown>;
        output: z.ZodUnknown;
        additionalContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        extractStepResult: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        extractPrompt: z.ZodOptional<z.ZodString>;
        score: z.ZodNumber;
        analyzeStepResult: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        analyzePrompt: z.ZodOptional<z.ZodString>;
        reason: z.ZodOptional<z.ZodString>;
        reasonPrompt: z.ZodOptional<z.ZodString>;
        scorer: z.ZodRecord<z.ZodString, z.ZodUnknown>;
        metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        source: z.ZodEnum<{
            LIVE: "LIVE";
            TEST: "TEST";
        }>;
        entity: z.ZodRecord<z.ZodString, z.ZodUnknown>;
        entityType: z.ZodOptional<z.ZodEnum<{
            [x: string]: string;
        }>>;
        structuredOutput: z.ZodOptional<z.ZodBoolean>;
        traceId: z.ZodOptional<z.ZodString>;
        spanId: z.ZodOptional<z.ZodString>;
        resourceId: z.ZodOptional<z.ZodString>;
        threadId: z.ZodOptional<z.ZodString>;
        preprocessStepResult: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
        preprocessPrompt: z.ZodOptional<z.ZodString>;
        generateScorePrompt: z.ZodOptional<z.ZodString>;
        generateReasonPrompt: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Schema for scoreTraces operation request */
export declare const scoreTracesRequestSchema: z.ZodObject<{
    scorerName: z.ZodString;
    targets: z.ZodArray<z.ZodObject<{
        traceId: z.ZodString;
        spanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
}, z.core.$strip>;
/** Request to score traces using a specific scorer */
export type ScoreTracesRequest = z.infer<typeof scoreTracesRequestSchema>;
/** Schema for scoreTraces operation response */
export declare const scoreTracesResponseSchema: z.ZodObject<{
    status: z.ZodString;
    message: z.ZodString;
    traceCount: z.ZodNumber;
}, z.core.$strip>;
/** Response from scoring traces */
export type ScoreTracesResponse = z.infer<typeof scoreTracesResponseSchema>;
//# sourceMappingURL=tracing.d.ts.map