import { type HelixPaletteSelection } from '../character/helixPalette'; export declare const BRIDGE_CHARACTER_ADDON_PROFILE_SCHEMA: "helix.bridge-character-addon-profile/1"; /** * Where this profile's `hide` op came from. * - `default-grant`: nothing explicit was authored, so `ops`/`fits.requires.nodes` carry the slot's FULL platform * hide grant as a CEILING. Conform replaces it with the regions the garment is measured to fully occlude * (`applyMeasuredHide`); if the base body is unavailable it keeps the ceiling and warns. * - `explicit`: the profile named `hideRegions` or a hand-authored `hide` op. That always wins, untouched. */ export type BridgeCharacterAddonHideSource = 'default-grant' | 'explicit'; export interface BridgeCharacterAddonProfile { schemaVersion: typeof BRIDGE_CHARACTER_ADDON_PROFILE_SCHEMA; title: string; slug: string; hostItemId: string; hostSha256: string; slotType: string; socket: string; nodes: string[]; fit: 'canonical' | 'host-aligned'; palette?: HelixPaletteSelection; fits: Record; ops: Record[]; /** * Per-LOD triangle targets, high->low. Optional: without it, conform aims at this slot's own server-side * ceiling automatically (`character/slotBudgets.ts` — combined triangles across LODs, generated from the * backend's `CHARACTER_ADD_ON_SLOT_TIERS`). With it (#218), these exact targets are used — and the packaged * result is still held to the slot's ceiling, failing conform instead of failing at publish. */ lodTris?: number[]; hide: { source: BridgeCharacterAddonHideSource; /** `nodes` without any hide-derived entries — what `applyMeasuredHide` re-adds the measured hide to. */ baseNodes: string[]; }; } export declare function validateCharacterAddonProfile(value: unknown): BridgeCharacterAddonProfile; /** * Replace a `default-grant` profile's full-grant hide with the regions conform MEASURED the garment to fully * occlude (`character/hideCoverage.ts`). The result re-runs the same fits/ops contract validation as any other * profile, so a measured hide can never publish something the full grant could not. `hideNodes: []` hides * nothing (`ops` loses its hide entry, `fits.requires.nodes` its hide globs). */ export declare function applyMeasuredHide(profile: BridgeCharacterAddonProfile, hideNodes: readonly string[]): BridgeCharacterAddonProfile; export declare function readCharacterAddonProfile(path: string): BridgeCharacterAddonProfile; /** Parse a character add-on from caller-owned immutable JSON bytes. */ export declare function parseCharacterAddonProfileJson(contents: string | Buffer): BridgeCharacterAddonProfile;