import { Child as PymChild } from 'pym.js'; /** * Wraps Pym.js to let an embedded iframe report its height to its parent. * * @example * const resizer = IframeResizer.create() * await resizer.sendHeight() */ export default class IframeResizer { initializer: Promise; constructor(); /** * Report the current document height to the parent frame. * * @returns A promise resolving once the height has been sent. */ sendHeight(): Promise; /** * Build a new resizer instance. * * @returns A fresh `IframeResizer`. */ static create(): IframeResizer; /** * Build the HTML snippet that embeds a given URL as a Pym-resized iframe. * * @param url - The URL to embed. * @param id - The container element id; defaults to a generated unique id. * @returns The HTML snippet wiring up the Pym parent. */ static template(url: string, id?: string): string; /** * Strip every Pym-injected parameter from a URL. * * @param href - The URL to clean; defaults to the captured initial href. * @returns The URL without any Pym parameters. */ static deletePymParams(href?: string): string; /** * Tell whether a URL is being viewed inside a Pym iframe. * * @param href - The URL to inspect; defaults to the captured initial href. * @returns `true` when every Pym parameter is present. */ static isEmbedded(href?: string): boolean; }