aliasing name to resolve conflict

This commit is contained in:
Sehoon Shon
2026-02-17 14:53:47 -05:00
parent 94670e6486
commit 5e7cfa5f01
2 changed files with 11 additions and 6 deletions

View File

@@ -4,12 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
// Import the bundled teleporter which contains the protobuf definitions and decryption logic
// eslint-disable-next-line no-restricted-syntax
const teleporter = require('./trajectory_teleporter.min.js');
import * as teleporter from './trajectory_teleporter.min.js';
/**
* Decrypts and parses an Antigravity trajectory file (.pb) into JSON.

View File

@@ -0,0 +1,10 @@
/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
export function trajectoryToJson(data: Buffer): unknown;
export function jsonToTrajectory(json: unknown): Buffer;
export function decrypt(data: Buffer): unknown;
export function encrypt(data: Buffer): Buffer;