1 | /**
|
---|
2 | * @license
|
---|
3 | * Copyright Google LLC All Rights Reserved.
|
---|
4 | *
|
---|
5 | * Use of this source code is governed by an MIT-style license that can be
|
---|
6 | * found in the LICENSE file at https://angular.io/license
|
---|
7 | */
|
---|
8 | /// <reference types="node" />
|
---|
9 | import { UpdateBuffer } from '../utility/update-buffer';
|
---|
10 | import { FileEntry, UpdateRecorder } from './interface';
|
---|
11 | export declare class UpdateRecorderBase implements UpdateRecorder {
|
---|
12 | protected _path: string;
|
---|
13 | protected _original: Buffer;
|
---|
14 | protected _content: UpdateBuffer;
|
---|
15 | constructor(entry: FileEntry);
|
---|
16 | static createFromFileEntry(entry: FileEntry): UpdateRecorderBase;
|
---|
17 | get path(): string;
|
---|
18 | insertLeft(index: number, content: Buffer | string): UpdateRecorder;
|
---|
19 | insertRight(index: number, content: Buffer | string): UpdateRecorder;
|
---|
20 | remove(index: number, length: number): UpdateRecorder;
|
---|
21 | apply(content: Buffer): Buffer;
|
---|
22 | }
|
---|
23 | export declare class UpdateRecorderBom extends UpdateRecorderBase {
|
---|
24 | private _delta;
|
---|
25 | constructor(entry: FileEntry, _delta?: number);
|
---|
26 | insertLeft(index: number, content: Buffer | string): UpdateRecorder;
|
---|
27 | insertRight(index: number, content: Buffer | string): UpdateRecorder;
|
---|
28 | remove(index: number, length: number): UpdateRecorder;
|
---|
29 | }
|
---|