import type { SpanMatch } from './matchSpan';
import type { Span } from './spanTypes';
import type { DraftTraceContext, RelationSchemasBase } from './types';
/**
 * Finds the first span matching the provided SpanMatch in the parent hierarchy
 * of the given Span, starting with the span itself and traversing up
 * through its parents.
 */
export declare function findAncestor<RelationSchemasT extends RelationSchemasBase<RelationSchemasT>>(span: Span<RelationSchemasT>, spanMatch: SpanMatch<keyof RelationSchemasT, RelationSchemasT, any>, traceContext?: DraftTraceContext<keyof RelationSchemasT, RelationSchemasT, any>): Span<RelationSchemasT> | undefined;
