/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
export declare enum MESSAGE_VERSION {
    V0 = 0,
    V1 = 1
}
export declare class MessageId {
    id: string;
    /**
     * e.g.: 0x01: fixed 1 byte for current version
     * offset = 0
     */
    version: MESSAGE_VERSION;
    /**
     * e.g.: 0x56F7E71C361B: lower 6 bytes of local mac address
     * offset = 1
     */
    macAddress: string;
    /**
     * e.g.: 0x21BC: lower 2 bytes of process id
     * offset = 7
     */
    processId: number;
    /**
     * e.g: 0x024CCDBE: seconds since 2021-01-01 00:00:00(UTC+0, lower 4 bytes)
     * offset = 9
     */
    timestamp: number;
    /**
     * e.g.: 0x00000000: sequence number(4 bytes)
     * offset = 13
     */
    sequence: number;
    toString(): string;
    equals(other: MessageId): boolean;
    hashCode(): number;
}
/**
 * Message Identifier
 * https://github.com/apache/rocketmq-clients/blob/master/docs/message_id.md
 */
export declare class MessageIdFactory {
    #private;
    static MAC: string;
    static create(): MessageId;
    static decode(id: string): MessageId;
}
