/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { BaseSegment, type ISegment } from "./mergeTreeNodes.js"; import type { IJSONSegment } from "./ops.js"; import type { PropertySet } from "./properties.js"; export declare const TextSegmentGranularity = 256; /** * @legacy @beta */ export interface IJSONTextSegment extends IJSONSegment { text: string; } /** * @legacy @beta */ export declare class TextSegment extends BaseSegment { text: string; static readonly type = "TextSegment"; readonly type = "TextSegment"; static is(segment: ISegment): segment is TextSegment; static make(text: string, props?: PropertySet): TextSegment; static fromJSONObject(spec: string | IJSONSegment): TextSegment | undefined; constructor(text: string, props?: PropertySet); toJSONObject(): IJSONTextSegment | string; clone(start?: number, end?: number): TextSegment; canAppend(segment: ISegment): boolean; toString(): string; append(segment: ISegment): void; protected createSplitSegmentAt(pos: number): TextSegment | undefined; } //# sourceMappingURL=textSegment.d.ts.map