export declare type OutboundMessage = { type: OutboundMessageType; req_id: string; listen?: boolean; fetch?: boolean; start_block?: number; with_progress?: number; data: T; }; export declare enum OutboundMessageType { GET_ACTION_TRACES = "get_action_traces", GET_TABLE_ROWS = "get_table_rows", GET_TRANSACTION_LIFECYCLE = "get_transaction_lifecycle", GET_HEAD_INFO = "get_head_info", UNLISTEN = "unlisten" } export declare type StreamOptions = { req_id?: string; fetch?: boolean; listen?: boolean; start_block?: number; with_progress?: number; irreversible_only?: boolean; }; export declare type GetActionTracesMessageData = { accounts: string; receivers?: string; action_names?: string; with_dbops?: boolean; with_dtrxops?: boolean; with_ramops?: boolean; with_tableops?: boolean; with_inline_traces?: boolean; }; export declare function getActionTracesMessage(data: GetActionTracesMessageData, streamOptions?: StreamOptions): OutboundMessage; export declare type GetTableRowsMessageData = { code: string; scope: string; table: string; json?: boolean; lower_bound?: string; upper_bound?: string; }; /** * @deprecated The message factories are deprecated, there is no need to create your * own message anynore. This will be removed in a future release. The standard * client does not use this anymore. */ export declare function getTableRowsMessage(data: GetTableRowsMessageData, streamOptions?: StreamOptions): OutboundMessage; export declare type GetTransactionLifecycleMessageData = { id: string; }; /** * @deprecated The message factories are deprecated, there is no need to create your * own message anynore. This will be removed in a future release. The standard * client does not use this anymore. */ export declare function getTransactionLifecycleMessage(data: GetTransactionLifecycleMessageData, streamOptions?: StreamOptions): OutboundMessage; /** * @deprecated The message factories are deprecated, there is no need to create your * own message anynore. This will be removed in a future release. The standard * client does not use this anymore. */ export declare function getHeadInfoMessage(streamOptions?: StreamOptions): OutboundMessage; export declare type UnlistenMessageData = { req_id: string; }; /** * @deprecated The message factories are deprecated, there is no need to create your * own message anymore. This will be removed in a future release. The standard * client does not use this anymore. */ export declare function unlistenMessage(data: UnlistenMessageData): OutboundMessage; export declare type OutboundMessageFactory = (createOutboundMessage: (type: OutboundMessageType, data: T, userOptions: StreamOptions) => OutboundMessage, withDefaultOptions: (userOptions: StreamOptions) => StreamOptions) => OutboundMessage; /** * Exported for consumption from internal packages. This does **not** * have any **Backward compatibility** policy nor documentation attached * to it. * * It will be moved and made private again when message factories * above have been removed. */ export declare function createOutboundMessage(type: OutboundMessageType, data: T, options: StreamOptions): OutboundMessage;