/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Value, Anchor, FieldKey, TreeNavigationResult, ITreeSubscriptionCursor, FieldStoredSchema, TreeSchemaIdentifier, TreeStoredSchema, AnchorNode } from "../../core";
import { FieldKind } from "../modular-schema";
import { NewFieldContent } from "../contextuallyTyped";
import { EditableTreeEvents } from "../untypedTree";
import { ProxyContext } from "./editableTreeContext";
import { EditableField, EditableTree, UnwrappedEditableField, TreeStatus } from "./editableTreeTypes";
import { ProxyTarget } from "./ProxyTarget";
export declare function makeTree(context: ProxyContext, cursor: ITreeSubscriptionCursor): EditableTree;
/**
 * A Proxy target, which together with a `nodeProxyHandler` implements a basic access to
 * the fields of {@link EditableTree} by means of the cursors.
 */
export declare class NodeProxyTarget extends ProxyTarget<Anchor> {
    readonly anchorNode: AnchorNode;
    readonly proxy: EditableTree;
    private readonly removeDeleteCallback;
    constructor(context: ProxyContext, cursor: ITreeSubscriptionCursor, anchorNode: AnchorNode, anchor: Anchor);
    protected tryMoveCursorToAnchor(anchor: Anchor, cursor: ITreeSubscriptionCursor): TreeNavigationResult;
    protected forgetAnchor(anchor: Anchor): void;
    get typeName(): TreeSchemaIdentifier;
    get type(): TreeStoredSchema;
    get value(): Value;
    get currentIndex(): number;
    lookupFieldKind(field: FieldKey): FieldKind;
    getFieldSchema(field: FieldKey): FieldStoredSchema;
    getFieldKeys(): FieldKey[];
    has(field: FieldKey): boolean;
    unwrappedField(field: FieldKey): UnwrappedEditableField;
    getField(fieldKey: FieldKey): EditableField;
    setField(fieldKey: FieldKey, content: NewFieldContent): void;
    [Symbol.iterator](): IterableIterator<EditableField>;
    private fieldLength;
    get parentField(): {
        readonly parent: EditableField;
        readonly index: number;
    };
    treeStatus(): TreeStatus;
    on<K extends keyof EditableTreeEvents>(eventName: K, listener: EditableTreeEvents[K]): () => void;
}
/**
 * Checks the type of an UnwrappedEditableField.
 * @public
 */
export declare function isEditableTree(field: UnwrappedEditableField): field is EditableTree;
//# sourceMappingURL=editableTree.d.ts.map