/** When the modal opens. Discriminated union on `type`. */ export type PopupTrigger = { type: 'delay'; seconds: number; } | { type: 'scroll'; percent: number; } | { type: 'immediate'; } /** * Waits for a click instead of a timer. What gets clicked is either the * author's own launcher button — see {@link PopupLauncher} — or, when the site * would rather use a control it already has, any element on the page carrying * `data-creaditor-open="