import { IServiceResponse } from "."; export interface IImageNode { nodeId: string; width: number; height: number; url: string; } export interface IImageNodeGateway { createNode(node: IImageNode): Promise>; getNode(nodeId: string): Promise>; deleteNode(nodeId: string): Promise>; deleteNodes(nodeIds: string[]): Promise>; } export interface IImageAnchor { anchorId: string; topLeftCoords: { row: number; columm: number; }; bottomRightCoords: { row: number; columm: number; }; } export interface IImageAnchorGateway { createAnchor(anchor: IImageAnchor): Promise>; getAnchor(anchorId: string): Promise>; getAnchors(anchorIds: string[]): Promise>; deleteAnchor(anchorId: string): Promise>; deleteAnchors(anchorIds: string[]): Promise>; }