import { ProjectPlugin, ProjectPluginStructure } from '@teleporthq/teleport-types'; /** * Ships a tiny first-party Collapsible Text overflow helper with every Next * project, and decomposes any raw `collapsible-text` primitive into its clamped * markup. * * The primitive decomposes to plain elements, so whether its clamped text * ACTUALLY overflows (and therefore whether the "Show more" toggle should * appear) can only be decided by a runtime measurement. This null-rendering, * self-contained component measures every collapsed block and hides the Show * more label when the text already fits. * * `runBefore` performs the structural decomposition (line-clamp + overflow * markers) so the generated app works even when the UIDL was exported WITHOUT * the GUI-side decomposition — it is idempotent when the UIDL is already * decomposed. `runAfter` ships the runtime helper the same way as the analytics * tracker + nav active-link highlighter (`injectSiblingIntoApp`). No npm * dependency, and a no-op on pages with no collapsible-text blocks, so it is * safe to run unconditionally. */ export declare class NextCollapsibleTextProjectPlugin implements ProjectPlugin { runBefore(structure: ProjectPluginStructure): Promise; runAfter(structure: ProjectPluginStructure): Promise; } //# sourceMappingURL=project-plugin.d.ts.map