import { IShhFilter, IShhMessage, IWhisperPostObject } from './interfaces'; import { DATA_60B, IJsonRPC, QUANTITY, RpcMethodNames } from './primitives'; export type ShhPost = IJsonRPC; export type ShhVersion = IJsonRPC< RpcMethodNames.SHH_VERSION, boolean, [IWhisperPostObject] >; export type ShhNewIdentity = IJsonRPC< RpcMethodNames.SHH_NEW_IDENTITY, DATA_60B >; export type ShhHasIdentity = IJsonRPC< RpcMethodNames.SHH_HAS_IDENTITY, boolean, [DATA_60B] >; export type ShhNewGroup = IJsonRPC; export type ShhAddToGroup = IJsonRPC< RpcMethodNames.SHH_ADD_TO_GROUP, boolean, [DATA_60B] >; export type ShhNewFilter = IJsonRPC< RpcMethodNames.SHH_NEW_FILTER, QUANTITY, [IShhFilter] >; export type ShhUninstallFilter = IJsonRPC< RpcMethodNames.SHH_UNINSTALL_FILTER, boolean, [QUANTITY] >; export type ShhGetFilterChanges< NoReceiver extends boolean = boolean > = IJsonRPC< RpcMethodNames.SHH_GET_FILTER_CHANGES, IShhMessage, [QUANTITY] >; export type ShhGetMessages = IJsonRPC< RpcMethodNames.SHH_GET_MESSAGES, IShhMessage, [QUANTITY] >; export type ShhType = | ShhPost | ShhVersion | ShhNewIdentity | ShhHasIdentity | ShhNewGroup | ShhAddToGroup | ShhNewFilter | ShhUninstallFilter | ShhGetFilterChanges | ShhGetMessages;