import { StreamID } from '@streamr/utils';
import { Authentication } from '../Authentication';
import { StreamRegistry } from '../contracts/StreamRegistry';
import { StreamMessage } from '../protocol/StreamMessage';
import { MessageSigner } from '../signature/MessageSigner';
import { SignatureValidator } from '../signature/SignatureValidator';
import { GroupKeyQueue } from './GroupKeyQueue';
import { PublishMetadata } from './Publisher';
export interface MessageFactoryOptions {
    streamId: StreamID;
    authentication: Authentication;
    streamRegistry: Pick<StreamRegistry, 'getStreamMetadata' | 'hasPublicSubscribePermission' | 'isStreamPublisher' | 'invalidatePermissionCaches'>;
    groupKeyQueue: GroupKeyQueue;
    signatureValidator: SignatureValidator;
    messageSigner: MessageSigner;
}
export declare class MessageFactory {
    private readonly streamId;
    private readonly authentication;
    private defaultPartition;
    private readonly defaultMessageChainIds;
    private readonly prevMsgRefs;
    private readonly streamRegistry;
    private readonly groupKeyQueue;
    private readonly signatureValidator;
    private readonly messageSigner;
    private firstMessage;
    constructor(opts: MessageFactoryOptions);
    createMessage(content: unknown, metadata: PublishMetadata & {
        timestamp: number;
    }, explicitPartition?: number): Promise<StreamMessage>;
    private getPublisherId;
    private getDefaultPartition;
}
