/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { ITreeCursor } from "../../core";
import { ChangesetLocalId, FieldEditor, NodeReviver } from "../modular-schema";
import { CellId, Changeset } from "./format";
export interface SequenceFieldEditor extends FieldEditor<Changeset> {
    insert(index: number, cursor: readonly ITreeCursor[], id: ChangesetLocalId): Changeset<never>;
    delete(index: number, count: number, id: ChangesetLocalId): Changeset<never>;
    revive(index: number, count: number, detachEvent: CellId, reviver: NodeReviver, isIntention?: true): Changeset<never>;
    /**
     *
     * @param sourceIndex - The index of the first node move
     * @param count - The number of nodes to move
     * @param destIndex - The index the nodes should be moved to, interpreted after removing the moving nodes
     * @returns a tuple containing a changeset for the move out and a changeset for the move in
     */
    move(sourceIndex: number, count: number, destIndex: number, id: ChangesetLocalId): [moveOut: Changeset<never>, moveIn: Changeset<never>];
    return(sourceIndex: number, count: number, destIndex: number, detachEvent: CellId): Changeset<never>;
}
export declare const sequenceFieldEditor: {
    buildChildChange: <TNodeChange = import("../modular-schema").NodeChangeset>(index: number, change: TNodeChange) => Changeset<TNodeChange>;
    insert: (index: number, cursors: readonly ITreeCursor[], id: ChangesetLocalId) => Changeset<never>;
    delete: (index: number, count: number, id: ChangesetLocalId) => Changeset<never>;
    revive: (index: number, count: number, detachEvent: CellId, reviver: NodeReviver, isIntention?: boolean) => Changeset<never>;
    move(sourceIndex: number, count: number, destIndex: number, id: ChangesetLocalId): [moveOut: Changeset<never>, moveIn: Changeset<never>];
    return(sourceIndex: number, count: number, destIndex: number, detachEvent: CellId): Changeset<never>;
};
//# sourceMappingURL=sequenceFieldEditor.d.ts.map