import { type ContinuumMaterialDefinition, type ContinuumPackage, type ContinuumPackageVersion, type ContinuumPackageVersionReference, type ContinuumSceneDependencyClosure, type RuntimeProfile } from '@hypersoniclabs/helix-manifest'; import type { ScratchSceneDescription } from './continuum/authoring'; import type { ScratchWorldPublicationFile } from './continuum/cli'; import type { ContinuumObjectPublication } from './continuum/types'; import { type ScenePackageCompilation } from './sceneElements/continuum'; import { type PaletteShowcaseDeviceBudget } from './paletteShowcaseProfiles'; export { PALETTE_SHOWCASE_DEFAULT_PROFILE, PALETTE_SHOWCASE_DEVICE_BUDGETS, type PaletteShowcaseDeviceBudget, type PaletteShowcaseProfileId, } from './paletteShowcaseProfiles'; export declare const PALETTE_SHOWCASE_VERSION = "1.1.0"; export declare const PALETTE_SHOWCASE_VARIANTS: readonly ["canonical", "practical", "weathered", "hero"]; export declare const PALETTE_SHOWCASE_LEGACY_RELEASE: { readonly world: { readonly id: "e68b69b9-1d55-4321-88c7-bdc8dbebf889"; readonly version: "1.0.5"; }; readonly scenePackage: { readonly packageId: "b45668d2-e837-5a37-be01-a08a6ca4d509"; readonly version: "1.0.5"; readonly manifestCid: "cid:sha256:e040c3c0524462f8c11e161ee778914015af1b12268b7b96e9cff44b92cf7681"; readonly documentCid: "cid:sha256:60a15bf898d595305254d8d316422dd8639224b0089e140ab1523199ccf9768f"; }; readonly runtimePackage: { readonly packageId: "04120fb9-cfd8-5a24-9ce4-289778d06582"; readonly version: "1.0.5"; readonly manifestCid: "cid:sha256:71a68f6a01e6aa5ca958b032c0e7ec1b9b62b34c93501798c47fc5d757bd541f"; }; }; type PaletteParameter = { key: string; type: string; default: string | number; operation: string; rendererSupport: 'rendered' | 'host-owned' | string; safe: { range?: [number, number]; gamut?: string; }; }; type Channel = { supported: boolean; required?: boolean; }; export type PaletteShowcaseFamily = { id: string; definitionVersion: string; kind: string; name: string; category: string; residency: 'core' | 'extended'; physical: { tiling: { repeatPerMeter: number; }; }; shader: { model: string; defaults: { roughness: number; metallic: number; normalScale: number; }; channels: Record; }; parameters: PaletteParameter[]; }; export type PaletteShowcaseCatalog = { contract: string; schemaVersion: string; palette: { id: string; version: string; }; families: PaletteShowcaseFamily[]; }; export type PaletteShowcasePublicationLedger = { palette: { id: string; version: string; }; activeRelease: string; families: Record; }>; }; export type PaletteShowcaseInput = { palette: PaletteShowcaseCatalog; ledger: PaletteShowcasePublicationLedger; materialClosures: ContinuumSceneDependencyClosure[]; materialDefinitions: Record; runtime: PaletteShowcaseRuntimePackage; worldId: string; projectId: string; }; type BindingVariation = { tint: [number, number, number, number]; roughnessScale: number; metallicScale: number; normalScale: number; emissiveScale: number; opacity: number; tilingScale: number; targets: Record; }; export declare const PALETTE_SHOWCASE_CONTEXT_COUNT: number; export declare function paletteShowcaseRuntimeProfiles(): RuntimeProfile[]; export type PaletteShowcaseMetrics = { textureCount: number; textureTransferBytes: number; decodedGpuMiBEstimate: number; programCount: number; drawCalls: number; transparentDrawCalls: number; materialSlots: number; uniqueMaterialBindings: number; }; export type PaletteShowcasePage = { id: string; category: string; familyIds: string[]; source: ScratchSceneDescription; compilation: ScenePackageCompilation; closure: ContinuumSceneDependencyClosure; objects: ContinuumObjectPublication[]; packagePublication: { slug: string; visibility: 'public'; }; parameterTargets: Record; }; export type PaletteShowcaseBudgetReceipt = { contract: 'helix.palette-showcase-budget-receipt/2'; palette: { id: string; version: string; }; showcaseVersion: string; deviceSelection: 'host-selected; the Scene does not implement an in-world switcher'; accounting: { scope: 'incremental one mounted page, excluding the root shell'; paletteReuseCredit: 'shared CIDs reduce transfer and residency; they do not reduce draw calls'; }; pages: Array<{ id: string; familyCount: number; profiles: Array<{ id: string; metrics: PaletteShowcaseMetrics; budget: PaletteShowcaseDeviceBudget; failures: string[]; pass: boolean; }>; }>; }; export type PaletteShowcasePublishOrder = { contract: 'helix.palette-showcase-publish-order/1'; steps: Array<{ id: string; kind: 'runtime-package' | 'scene-page' | 'world-release'; descriptor: string; command: string; dependsOn: string[]; }>; }; export type PaletteShowcasePublicationPlan = { runtime: PaletteShowcaseRuntimePackage; pages: PaletteShowcasePage[]; world: ScratchWorldPublicationFile; budgetReceipt: PaletteShowcaseBudgetReceipt; publishOrder: PaletteShowcasePublishOrder; }; export declare function createPaletteShowcasePublicationPlan(input: PaletteShowcaseInput): PaletteShowcasePublicationPlan; /** Backward-compatible entrypoint for callers that only need the root World descriptor. */ export declare function createPaletteShowcaseDescriptor(input: PaletteShowcaseInput): ScratchWorldPublicationFile; export type PaletteShowcaseRuntimePackage = { package: ContinuumPackage; packageVersion: ContinuumPackageVersion; reference: ContinuumPackageVersionReference; closure: ContinuumSceneDependencyClosure; objects: ContinuumObjectPublication[]; }; export declare function createPaletteShowcaseRuntimePackage(): PaletteShowcaseRuntimePackage;