import type { Result, SerializableError, SerializableResult } from './types.js'; /** * It receives an error and returns a serializable error to keep important data - such as the error name and the path - across the network. */ declare function serializeError(error: Error): SerializableError; /** * It receives a Result and returns a SerializableResult with the errors converted to SerializableError[]. */ declare function serialize(result: Result): SerializableResult; export { serialize, serializeError }; //# sourceMappingURL=serializer.d.ts.map