import * as patch from './patch';
export type ApplyItem<T> = patch.PatchItem<T> | {
    type: 'remove';
    oldPos: number;
    newPos: number;
    length: number;
};
export type Apply<T> = ApplyItem<T>[];
export declare function applyPatch<T>(a: T[], patch: Apply<T>): T[];
