import { StreamID, StreamMessage, StreamMessageOptions } from '@streamr/protocol'; import { PublishMetadata } from './Publisher'; import { GroupKeyQueue } from './GroupKeyQueue'; import { Authentication } from '../Authentication'; import { StreamRegistry } from '../registry/StreamRegistry'; export interface MessageFactoryOptions { streamId: StreamID; authentication: Authentication; streamRegistry: Pick; groupKeyQueue: GroupKeyQueue; } export declare const createSignedMessage: (opts: Omit, "signature" | "content"> & { serializedContent: string; authentication: Authentication; }) => Promise>; export declare class MessageFactory { private readonly streamId; private readonly authentication; private defaultPartition; private readonly defaultMessageChainIds; private readonly prevMsgRefs; private readonly streamRegistry; private readonly groupKeyQueue; constructor(opts: MessageFactoryOptions); createMessage(content: T, metadata: PublishMetadata & { timestamp: number; }, explicitPartition?: number): Promise>; private getDefaultPartition; }