export declare function useTraceLightSpans(traceId: string | null | undefined): import('@tanstack/react-query').UseQueryResult<{
    traceId: string;
    spans: {
        createdAt: Date;
        updatedAt: Date | null;
        name: string;
        spanType: import('@mastra/core/observability').SpanType;
        isEvent: boolean;
        startedAt: Date;
        traceId: string;
        spanId: string;
        parentSpanId?: string | null | undefined;
        endedAt?: Date | null | undefined;
        error?: unknown;
        entityType?: import('@mastra/core/storage').EntityType | null | undefined;
        entityId?: string | null | undefined;
        entityName?: string | null | undefined;
    }[];
}, Error>;
