/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import type { IIdCompressor, SessionId } from "@fluidframework/id-compressor";
import type { IJsonCodec } from "../codec/index.js";
import type { ChangeEncodingContext, EncodedRevisionTag, RevisionTag, SchemaAndPolicy } from "../core/index.js";
import { type JsonCompatibleReadOnly } from "../util/index.js";
import type { SharedBranchSummaryData } from "./editManager.js";
import type { EncodedSharedBranch } from "./editManagerFormatCommons.js";
export interface EditManagerEncodingContext {
    idCompressor: IIdCompressor;
    readonly schema?: SchemaAndPolicy;
}
export declare function encodeSharedBranch<TChangeset>(changeCodec: IJsonCodec<TChangeset, JsonCompatibleReadOnly, JsonCompatibleReadOnly, ChangeEncodingContext>, revisionTagCodec: IJsonCodec<RevisionTag, EncodedRevisionTag, EncodedRevisionTag, ChangeEncodingContext>, data: SharedBranchSummaryData<TChangeset>, context: EditManagerEncodingContext, originatorId: SessionId | undefined): EncodedSharedBranch<TChangeset>;
export declare function decodeSharedBranch<TChangeset>(changeCodec: IJsonCodec<TChangeset, JsonCompatibleReadOnly, JsonCompatibleReadOnly, ChangeEncodingContext>, revisionTagCodec: IJsonCodec<RevisionTag, EncodedRevisionTag, EncodedRevisionTag, ChangeEncodingContext>, json: EncodedSharedBranch<TChangeset>, context: EditManagerEncodingContext, originatorId: SessionId | undefined): SharedBranchSummaryData<TChangeset>;
//# sourceMappingURL=editManagerCodecsCommons.d.ts.map