import { type HelixEventDecl, type HelixPackageEnvelope } from '@hypersoniclabs/helix-manifest'; import { type AbilityValidator } from './ability'; import type { BundleFile } from './bundle'; /** * The world-event contract a package declares for its `from: "world"` imports, read from * `interactable.json` → `interface.worldEvents` (the package-owned free-form field in v1; same shape as * a world's `multiplayer.events`). A package that imports from the world without declaring the * contract cannot be validated in isolation and is refused with the missing key named, instead of * the misleading "world does not export" the bare validator produces (helix-creator-cli#122). */ export declare function interactableWorldEventContract(manifest: { interface: Record; }, fragment: unknown): { worldEvents: Record | undefined; errors: string[]; }; export type PackageBundleCheck = { kind: string | null; envelope: HelixPackageEnvelope | null; payload: Record | null; files: BundleFile[]; errors: string[]; }; export declare function checkPackageBundle(root: string, validator: AbilityValidator): PackageBundleCheck;