import type { ContinuumObjectReference } from '@hypersoniclabs/helix-manifest'; import type { ScenePackageCompilationInput } from '../sceneElements/continuum'; import type { SourceSceneMap } from '../sceneImport/semantic'; import type { ScratchSceneDescription } from './authoring'; import type { ContinuumObjectPublication, ContinuumPublicationIntent } from './types'; type FileObjectSource = { kind: 'file'; path: string; audience?: 'private' | 'public'; }; type CliObject = { reference: ContinuumObjectReference; source: FileObjectSource | Exclude; }; export type ContinuumPackagePublicationFile = Omit & { sourceDigest?: string; objects: CliObject[]; sourceDirectory?: { path: string; audience?: 'private' | 'public'; }; }; export type ContinuumWorldPublicationFile = { projectId: string; sourceDigest?: string; source: T; compilation: Omit; packagePublication?: ContinuumPublicationIntent['packagePublication']; defaultRuntimeProfileId: string; objects?: CliObject[]; listings: ContinuumPublicationIntent['listings']; }; export declare const MAX_INLINE_OBJECT_BYTES: number; export declare function readContinuumPublicationFile(path: string): Promise<{ input: T; sourceDigest: string; objectPublications: ContinuumObjectPublication[]; }>; export declare function readSafeRegularFile(path: string, maxBytes: number, label: string): Promise<{ path: string; bytes: Uint8Array; }>; export declare function readSafeConfinedFile(baseDirectory: string, requestedPath: string, maxBytes: number, label: string): Promise<{ path: string; bytes: Uint8Array; }>; export type SourceWorldPublicationFile = ContinuumWorldPublicationFile; export type ScratchWorldPublicationFile = ContinuumWorldPublicationFile; /** * Proves, from the backend's own published contract, that a Package Version can be * sealed immutably without becoming current and activated separately afterwards. * * This is deliberately not a hardcoded claim. Staging is the difference between * publishing bytes and switching every world over to them, so the CLI reads the live * OpenAPI document and confirms the seal request really accepts `activate` and the * activate route really exists. A backend that predates staged versions fails the check * instead of silently activating a release that was never verified. */ export type ContinuumStagedPackageVersionSupport = { contract: 'helix.continuum.staged-package-version/1'; sealedNonCurrentStaging: boolean; explicitVersionActivation: boolean; /** The backend serves the admin Package publication routes (`publish-package --as-admin`). */ adminPackagePublication?: true; }; export declare function continuumStagedPackageVersionSupport(apiOrigin: string, fetchImpl?: typeof fetch): Promise; export {};