import { IndexPath } from './indexPath.js'; import { BaseOptions } from './options.js'; /** * Returns a node by its `IndexPath`. * * The first node is implicitly included in the `IndexPath` (i.e. no need to pass a `0` first in every `IndexPath`). */ export declare function get(node: T, indexPath: IndexPath, options: BaseOptions): T | undefined; /** * Returns an array of each node in an `IndexPath`, excluding the last node. * * The first node is implicitly included in the `IndexPath` (i.e. no need to pass a `0` first in every `IndexPath`). */ export declare function ancestors(node: T, indexPath: IndexPath, options: BaseOptions): T[]; /** * Returns a node by its `IndexPath`. * * The first node is implicitly included in the `IndexPath` (i.e. no need to pass a `0` first in every `IndexPath`). */ export declare function access(node: T, indexPath: IndexPath, options: BaseOptions): T; /** * Returns an array of each node in an `IndexPath`. * * The first node is implicitly included in the `IndexPath` (i.e. no need to pass a `0` first in every `IndexPath`). */ export declare function accessPath(node: T, indexPath: IndexPath, options: BaseOptions): T[];