import { GraphOperation, NodeDefinition, SerializedGraphOperation, SerializedMusterType, SerializedMusterTypeData, SerializedNodeDefinition } from '../types/graph'; import { Matcher } from '../types/matchers'; /** * A helper function used for serializing the [[GraphNode]] to a JSON that can be safely send * to the remote or back to the client. It uses a node-specific implementation of sanitizer * to figure out how best to represent the node as JSON. * @param value * @returns {string} */ export declare function serialize(value: any): string; export declare function sanitize(value: any): any; export declare function sanitizeMusterType(type: Matcher): SerializedMusterType; export declare function sanitizeMusterTypeMetadata(type: Matcher): SerializedMusterTypeData | undefined; export declare function sanitizeGraphOperation(operation: GraphOperation): SerializedGraphOperation; export declare function isSerializedNode(value: any): value is SerializedNodeDefinition; export declare function isSerializedGraphOperation(value: any): value is SerializedGraphOperation; export declare function isSerializedMusterType(value: any): value is SerializedMusterType; export declare function isSanitizable(value: any): value is NodeDefinition | GraphOperation | Matcher;