import type { Node as SyntaxNode } from 'web-tree-sitter';
import type { LanguageExtractor } from '../tree-sitter-types';
/**
 * The implementing type's simple name for an `impl` block, read from the
 * grammar's `type` field (#1588). Mirrored byte-for-byte by the native
 * kernel's `impl_type_name` (codegraph-kernel/src/rustlang.rs) — change both.
 *
 * `impl<T> Source for BufSource<T>`, `impl<'a> Iterator for Parents<'a>`,
 * `impl Trait for &Foo`, `impl Trait for m::Foo` all yield the implementing
 * TYPE (`BufSource`, `Parents`, `Foo`, `Foo`). The previous rule took the last
 * bare `type_identifier` child of the `impl_item`; once the implementing type
 * carries parameters it parses as a `generic_type`, so the only bare
 * identifier left was the TRAIT's — every parameterized impl's methods were
 * qualified by the trait (`Source::read`), unaddressable by their type and
 * colliding with the trait's own declaration.
 *
 * Shapes that name no single type (tuples, `dyn Trait`, pointers, primitives,
 * function types…) yield undefined: no receiver, and the fn is extracted
 * exactly as before.
 */
export declare function rustImplTypeName(typeNode: SyntaxNode | null, source: string): string | undefined;
export declare const rustExtractor: LanguageExtractor;
//# sourceMappingURL=rust.d.ts.map