/**
 * Frontend utilities for Adapt plugins running in browser/iframe contexts
 *
 * Plugins must call `init()` to set up iframe communication with the parent.
 * The `init()` function sends an `adapt-init` message to the parent and optionally
 * sets up content-based resizing.
 */
/**
 * Get the authentication token from the URL hash.
 * @param isDevelopment If true, returns a dev token for local development
 */
export declare function getToken(isDevelopment?: boolean): string;
export interface AdaptInitMessage {
    type: 'adapt-init';
    resize: boolean;
}
export interface InitOptions {
    /** Whether the plugin supports content-based resizing. Default: true */
    resize?: boolean;
    /** Callback invoked when dark mode state changes from parent */
    onDarkMode?: (darkMode: boolean) => void;
}
/**
 * Initialize the plugin's iframe communication with the parent.
 *
 * Must be called exactly once. Sends an `adapt-init` message to the parent
 * indicating whether this plugin supports content-based resizing.
 *
 * @param options.resize - Whether to enable content-based resizing (default: true)
 * @param options.onDarkMode - Callback invoked when dark mode state changes
 */
export declare function init(options?: InitOptions): void;
//# sourceMappingURL=index.d.ts.map