import type Connection from "./Connection.ts";
import type Document from "./Document.ts";
import type { IncomingMessage } from "./IncomingMessage.ts";
export declare class MessageReceiver {
    message: IncomingMessage;
    defaultTransactionOrigin?: string;
    constructor(message: IncomingMessage, defaultTransactionOrigin?: string);
    apply(document: Document, connection?: Connection, reply?: (message: Uint8Array) => void): void;
    readSyncMessage(message: IncomingMessage, document: Document, connection?: Connection, reply?: (message: Uint8Array) => void, requestFirstSync?: boolean): 0 | 2 | 1;
    applyQueryAwarenessMessage(document: Document, reply?: (message: Uint8Array) => void): void;
}
