import IServiceResponse from "./IServiceResponse"; export interface IImmutableTextNode { nodeId: string; text: string; } export interface IImmutableTextNodeGateway { createNode(node: IImmutableTextNode): Promise>; getNode(nodeId: string): Promise>; deleteNode(nodeId: string): Promise>; deleteNodes(nodeIds: string[]): Promise>; } export interface IImmutableTextAnchor { anchorId: string; start: number; end: number; } export interface IImmutableTextAnchorGateway { createAnchor(anchor: IImmutableTextAnchor): Promise>; getAnchor(anchorId: string): Promise>; getAnchors(anchorIds: string[]): Promise>; deleteAnchor(anchorId: string): Promise>; deleteAnchors(anchorIds: string[]): Promise>; }