import { IServiceResponse } from "."; export interface IImmutableGridNode { nodeId: string; columns: { key: string; name: string; }[]; rows: { [key: string]: string; }[]; } export interface IImmutableGridNodeGateway { createNode(node: IImmutableGridNode): Promise>; getNode(nodeId: string): Promise>; deleteNode(nodeId: string): Promise>; deleteNodes(nodeIds: string[]): Promise>; } export interface IImmutableGridAnchor { anchorId: string; topLeftCell: { row: number; columm: number; }; bottomRightCell: { row: number; columm: number; }; } export interface IImmutableGridAnchorGateway { createAnchor(anchor: IImmutableGridAnchor): Promise>; getAnchor(anchorId: string): Promise>; getAnchors(anchorIds: string[]): Promise>; deleteAnchor(anchorId: string): Promise>; deleteAnchors(anchorIds: string[]): Promise>; }