import type { HistoireBridgePublication } from '@histoire/protocol'; import type { EmbedSurfaceContext } from '../surfaces.js'; /** Same-origin custom controls replica; all edits resolve through canonical parent runtime. */ export declare function createEmbedControlsReplica(context: EmbedSurfaceContext, changed: (hasControls: boolean, height: number) => void): { ready: Promise; /** Resolve only current opaque ID and current replica; callback remains inside sandbox. */ publication(event: HistoireBridgePublication): void; /** Retire maps and listeners before detached frame can post late focus/state/height. */ close: () => void; };