import { LEGACY_GIT_BLOB_PATCH_STORAGE, } from "./CommitMessageCodecPort.js";
/** Port for patch journal persistence. */
export default class PatchJournalPort {
    /** Describes the storage route used for newly written patches. */
    get writeStorage() {
        return LEGACY_GIT_BLOB_PATCH_STORAGE;
    }
    /**
     * Whether this journal uses external blob storage.
     *
     * When true, readers must use the `encrypted` flag in the commit
     * message trailer to retrieve blobs via BlobStoragePort rather than
     * reading them directly from Git.
     */
    get usesExternalStorage() {
        return this.writeStorage.strategy !== 'legacy-git-blob';
    }
}
