import { ListTracesArgs, ListTracesResponse } from '@mastra/core/storage';
export declare const TRACES_PER_PAGE = 25;
export interface TracesFilters {
    filters?: ListTracesArgs['filters'];
}
/** Returns the next page number if the server indicates more pages are available. */
export declare function getTracesNextPageParam(lastPage: ListTracesResponse | undefined, _allPages: unknown, lastPageParam: number): number | undefined;
type TracesPageResponse = ListTracesResponse & {
    threadTitles?: Record<string, string>;
};
/** Deduplicates traces by traceId across all loaded pages, keeping the first occurrence.
 *  Also merges threadTitles from all pages for thread grouping display. */
export declare function selectUniqueTraces(data: {
    pages: TracesPageResponse[];
}): {
    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;
        source?: string | null | undefined;
        entityType?: import('@mastra/core/storage').EntityType | null | undefined;
        entityId?: string | null | undefined;
        entityName?: string | null | undefined;
        parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
        parentEntityId?: string | null | undefined;
        parentEntityName?: string | null | undefined;
        rootEntityType?: import('@mastra/core/storage').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;
        serviceName?: string | null | undefined;
        scope?: Record<string, unknown> | null | undefined;
        entityVersionId?: string | null | undefined;
        parentEntityVersionId?: string | null | undefined;
        rootEntityVersionId?: string | null | undefined;
        parentSpanId?: string | null | undefined;
    }[];
    threadTitles: Record<string, string>;
};
export declare const useTraces: ({ filters }: TracesFilters) => {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: {
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    };
    error: Error;
    isError: true;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: true;
    isSuccess: false;
    isPlaceholderData: false;
    status: "error";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchNextPageError: boolean;
    isFetchingNextPage: boolean;
    isFetchPreviousPageError: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
} | {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: {
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    };
    error: null;
    isError: false;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: true;
    isPlaceholderData: false;
    status: "success";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
} | {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: undefined;
    error: Error;
    isError: true;
    isPending: false;
    isLoading: false;
    isLoadingError: true;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "error";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
} | {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: undefined;
    error: null;
    isError: false;
    isPending: true;
    isLoading: true;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "pending";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
} | {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: undefined;
    error: null;
    isError: false;
    isPending: true;
    isLoadingError: false;
    isRefetchError: false;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    isSuccess: false;
    isPlaceholderData: false;
    status: "pending";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isLoading: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
} | {
    setEndOfListElement: (node: HTMLDivElement | null) => (() => void) | undefined;
    data: {
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    };
    isError: false;
    error: null;
    isPending: false;
    isLoading: false;
    isLoadingError: false;
    isRefetchError: false;
    isSuccess: true;
    isPlaceholderData: true;
    isFetchNextPageError: false;
    isFetchPreviousPageError: false;
    status: "success";
    fetchNextPage: (options?: import('@tanstack/react-query').FetchNextPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchPreviousPage: (options?: import('@tanstack/react-query').FetchPreviousPageOptions) => Promise<import('@tanstack/react-query').InfiniteQueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    hasNextPage: boolean;
    hasPreviousPage: boolean;
    isFetchingNextPage: boolean;
    isFetchingPreviousPage: boolean;
    dataUpdatedAt: number;
    errorUpdatedAt: number;
    failureCount: number;
    failureReason: Error | null;
    errorUpdateCount: number;
    isFetched: boolean;
    isFetchedAfterMount: boolean;
    isFetching: boolean;
    isInitialLoading: boolean;
    isPaused: boolean;
    isRefetching: boolean;
    isStale: boolean;
    isEnabled: boolean;
    refetch: (options?: import('@tanstack/react-query').RefetchOptions) => Promise<import('@tanstack/react-query').QueryObserverResult<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }, Error>>;
    fetchStatus: import('@tanstack/react-query').FetchStatus;
    promise: Promise<{
        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;
            source?: string | null | undefined;
            entityType?: import('@mastra/core/storage').EntityType | null | undefined;
            entityId?: string | null | undefined;
            entityName?: string | null | undefined;
            parentEntityType?: import('@mastra/core/storage').EntityType | null | undefined;
            parentEntityId?: string | null | undefined;
            parentEntityName?: string | null | undefined;
            rootEntityType?: import('@mastra/core/storage').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;
            serviceName?: string | null | undefined;
            scope?: Record<string, unknown> | null | undefined;
            entityVersionId?: string | null | undefined;
            parentEntityVersionId?: string | null | undefined;
            rootEntityVersionId?: string | null | undefined;
            parentSpanId?: string | null | undefined;
        }[];
        threadTitles: Record<string, string>;
    }>;
};
export {};
