import { RenderReport } from '../core/ErrorInfo.js'; import { ExplorerRuntime, FixtureModules } from '../core/index.js'; declare global { interface Window { __componentExplorer__?: HeadlessApi; } } interface HeadlessApi { readonly sessionId: string; readonly updateVersion: number; readonly runtimeVersion: string; listFixtures(): FlatFixture[]; renderFixture(fixtureId: string): Promise; } interface FlatFixture { readonly fixtureId: string; readonly fixtureName: string; readonly groupPath: string[]; readonly background: 'light' | 'dark'; readonly labels: readonly string[]; } export declare class HeadlessMode implements ExplorerRuntime { private readonly _containerElement; readonly sessionId: string; private _updateVersion; private _root; private _fixtureModules; private _currentRendering; private _currentContainer; constructor(_containerElement: HTMLElement, fixtureModules: FixtureModules); get updateVersion(): number; updateFixtures(fixtureModules: FixtureModules): void; bumpVersion(): void; listFixtures(): FlatFixture[]; renderFixture(fixtureId: string): Promise; private _buildTree; private _flattenFixtures; private _findFixtureNode; private _installGlobalApi; } export {}; //# sourceMappingURL=HeadlessMode.d.ts.map