import { LightSpanRecord } from '@mastra/core/storage';
import { UseQueryResult } from '@tanstack/react-query';
export interface UseBranchArgs {
    traceId: string | null | undefined;
    spanId: string | null | undefined;
    depth?: number;
}
export declare function useBranch({ traceId, spanId, depth, }: UseBranchArgs): UseQueryResult<{
    traceId: string;
    spans: LightSpanRecord[];
} | null>;
