'f'
mh-two-thousand-and-two
2024-04-12 26f2711ef9461961fb953e2b497bd314ef95e345
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { ASTNode, Fork } from "./types";
export interface Path<V = any> {
    value: V;
    parentPath: any;
    name: any;
    __childCache: object | null;
    getValueProperty(name: any): any;
    get(...names: any[]): any;
    each(callback: any, context?: any): any;
    map(callback: any, context?: any): any;
    filter(callback: any, context?: any): any;
    shift(): any;
    unshift(...args: any[]): any;
    push(...args: any[]): any;
    pop(): any;
    insertAt(index: number, ...args: any[]): any;
    insertBefore(...args: any[]): any;
    insertAfter(...args: any[]): any;
    replace(replacement?: ASTNode, ...args: ASTNode[]): any;
}
export interface PathConstructor {
    new <V = any>(value: any, parentPath?: any, name?: any): Path<V>;
}
export default function pathPlugin(fork: Fork): PathConstructor;