/**
* index.ts — Public entry point for universal-pwa.
*
* Usage (CDN / any HTML page):
*
*
*
* Usage (npm / ESM):
* import { init } from 'universal-pwa'
* init({ appName: 'My App' })
*
* Headless usage (bring your own UI):
* import { createEngine } from 'universal-pwa'
* const engine = createEngine({ appName: 'My App' })
* engine.on('installable', () => myButton.show())
*/
export { InstallEngine } from './core/engine';
export { UIComponent } from './ui/component';
export type { UniversalPWAConfig, InstallStatus, Platform, PromptPosition, BeforeInstallPromptEvent, } from './types';
import { InstallEngine } from './core/engine';
import { UIComponent } from './ui/component';
import type { UniversalPWAConfig } from './types';
/**
* `init()` — The primary API. Creates the engine AND the default UI.
* One call, full functionality.
*/
export declare function init(config?: UniversalPWAConfig): {
engine: InstallEngine;
ui: UIComponent;
};
/**
* `createEngine()` — Headless mode. Engine only, no default UI.
* For devs who want to build their own UI using the event system.
*/
export declare function createEngine(config?: UniversalPWAConfig): InstallEngine;
/**
* Default export for CDN usage: window.UniversalPWA.init(...)
*/
declare const UniversalPWA: {
init: typeof init;
createEngine: typeof createEngine;
version: string;
};
export default UniversalPWA;