import { z } from 'zod';
export declare const LIST_TRACES_ROUTE: import("../server-adapter").ServerRoute<Record<string, unknown>, {
    pagination: {
        total: number;
        page: number;
        perPage: number | false;
        hasMore: boolean;
    };
    spans: {
        createdAt: Date;
        updatedAt: Date | null;
        name: string;
        spanType: import("@mastra/core/observability").SpanType;
        isEvent: boolean;
        startedAt: Date;
        traceId: string;
        spanId: string;
        status: import("@mastra/core/storage").TraceStatus;
        experimentId?: string | null | undefined;
        attributes?: Record<string, unknown> | null | undefined;
        links?: unknown[] | null | undefined;
        input?: unknown;
        output?: unknown;
        error?: unknown;
        endedAt?: Date | null | undefined;
        requestContext?: Record<string, unknown> | null | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        tags?: string[] | null | undefined;
        entityType?: import("@mastra/core/observability").EntityType | null | undefined;
        entityId?: string | null | undefined;
        entityName?: string | null | undefined;
        parentEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
        parentEntityId?: string | null | undefined;
        parentEntityName?: string | null | undefined;
        rootEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
        rootEntityId?: string | null | undefined;
        rootEntityName?: string | null | undefined;
        userId?: string | null | undefined;
        organizationId?: string | null | undefined;
        resourceId?: string | null | undefined;
        runId?: string | null | undefined;
        sessionId?: string | null | undefined;
        threadId?: string | null | undefined;
        requestId?: string | null | undefined;
        environment?: string | null | undefined;
        source?: string | null | undefined;
        serviceName?: string | null | undefined;
        scope?: Record<string, unknown> | null | undefined;
        parentSpanId?: string | null | undefined;
    }[];
}, "json", import("../server-adapter").RouteSchemas<undefined, z.ZodObject<Readonly<{
    [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
}>, z.core.$strip>, undefined, 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>>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").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>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof import("@mastra/core/observability").SpanType>;
        isEvent: z.ZodBoolean;
        startedAt: z.ZodDate;
        parentSpanId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        traceId: z.ZodString;
        spanId: z.ZodString;
        status: z.ZodEnum<typeof import("@mastra/core/storage").TraceStatus>;
    }, z.core.$strip>>;
}, z.core.$strip>>, "GET", "/observability/traces">;
export declare const GET_TRACE_ROUTE: import("../server-adapter").ServerRoute<{
    traceId: string;
}, {
    traceId: string;
    spans: {
        createdAt: Date;
        updatedAt: Date | null;
        name: string;
        spanType: import("@mastra/core/observability").SpanType;
        isEvent: boolean;
        startedAt: Date;
        traceId: string;
        spanId: string;
        experimentId?: string | null | undefined;
        attributes?: Record<string, unknown> | null | undefined;
        links?: unknown[] | null | undefined;
        input?: unknown;
        output?: unknown;
        error?: unknown;
        endedAt?: Date | null | undefined;
        requestContext?: Record<string, unknown> | null | undefined;
        metadata?: Record<string, unknown> | null | undefined;
        tags?: string[] | null | undefined;
        entityType?: import("@mastra/core/observability").EntityType | null | undefined;
        entityId?: string | null | undefined;
        entityName?: string | null | undefined;
        parentEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
        parentEntityId?: string | null | undefined;
        parentEntityName?: string | null | undefined;
        rootEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
        rootEntityId?: string | null | undefined;
        rootEntityName?: string | null | undefined;
        userId?: string | null | undefined;
        organizationId?: string | null | undefined;
        resourceId?: string | null | undefined;
        runId?: string | null | undefined;
        sessionId?: string | null | undefined;
        threadId?: string | null | undefined;
        requestId?: string | null | undefined;
        environment?: string | null | undefined;
        source?: string | null | undefined;
        serviceName?: string | null | undefined;
        scope?: Record<string, unknown> | null | undefined;
        parentSpanId?: string | null | undefined;
    }[];
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    traceId: z.ZodString;
}, z.core.$strip>, undefined, undefined, 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>>>;
        entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
        entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
        parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").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>>;
        source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        serviceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
        scope: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
        name: z.ZodString;
        spanType: z.ZodEnum<typeof import("@mastra/core/observability").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>>, "GET", "/observability/traces/:traceId">;
export declare const SCORE_TRACES_ROUTE: import("../server-adapter").ServerRoute<{
    scorerName: string;
    targets: {
        traceId: string;
        spanId?: string | undefined;
    }[];
}, {
    status: string;
    message: string;
    traceCount: number;
}, "json", import("../server-adapter").RouteSchemas<undefined, undefined, z.ZodObject<{
    scorerName: z.ZodString;
    targets: z.ZodArray<z.ZodObject<{
        traceId: z.ZodString;
        spanId: z.ZodOptional<z.ZodString>;
    }, z.core.$strip>>;
}, z.core.$strip>, z.ZodObject<{
    status: z.ZodString;
    message: z.ZodString;
    traceCount: z.ZodNumber;
}, z.core.$strip>>, "POST", "/observability/traces/score">;
export declare const LIST_SCORES_BY_SPAN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
    perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
}, z.core.$strip>, undefined>, {
    pagination: {
        total: number;
        page: number;
        perPage: number | false;
        hasMore: boolean;
    };
    scores: {
        createdAt: Date;
        updatedAt: Date | null;
        id: string;
        scorerId: string;
        entityId: string;
        runId: string;
        output: unknown;
        score: number;
        scorer: Record<string, unknown>;
        source: "LIVE" | "TEST";
        entity: Record<string, unknown>;
        input?: unknown;
        additionalContext?: Record<string, unknown> | undefined;
        requestContext?: Record<string, unknown> | undefined;
        extractStepResult?: Record<string, unknown> | undefined;
        extractPrompt?: string | undefined;
        analyzeStepResult?: Record<string, unknown> | undefined;
        analyzePrompt?: string | undefined;
        reason?: string | undefined;
        reasonPrompt?: string | undefined;
        metadata?: Record<string, unknown> | undefined;
        entityType?: string | undefined;
        structuredOutput?: boolean | undefined;
        traceId?: string | undefined;
        spanId?: string | undefined;
        resourceId?: string | undefined;
        threadId?: string | undefined;
        preprocessStepResult?: Record<string, unknown> | undefined;
        preprocessPrompt?: string | undefined;
        generateScorePrompt?: string | undefined;
        generateReasonPrompt?: string | undefined;
    }[];
}, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
    traceId: z.ZodString;
    spanId: z.ZodString;
}, z.core.$strip>, z.ZodObject<{
    page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
    perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
}, z.core.$strip>, undefined, 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>>, "GET", "/observability/traces/:traceId/:spanId/scores">;
//# sourceMappingURL=observability.d.ts.map