import type { ServiceAdapter } from '../core/service-adapter.js'; import type { BaseAdapterOptions } from './shared.js'; /** * Plausible Analytics adapter. * * @see https://plausible.io/docs/excluding-localstorage * * Documented opt-out mechanism (from Plausible docs): * - Key: `localStorage.plausible_ignore` * - Value: `'true'` to exclude, remove to include * - Console message when active: "Ignoring Event: localStorage flag" * * Plausible is privacy-focused and doesn't use cookies, so consent is * technically not required. However, some site owners want to respect * a user's explicit opt-out preference. * * Plausible checks `localStorage.plausible_ignore` — if set to "true", * it skips all tracking and logs "Ignoring Event: localStorage flag" * to the console. * * ```js * registry.register(createPlausibleAdapter()); * ``` */ export interface PlausibleAdapterOptions extends BaseAdapterOptions { /** localStorage key (default: 'plausible_ignore') */ storageKey?: string; } /** * Create a Plausible Analytics service adapter. */ export declare function createPlausibleAdapter(options?: PlausibleAdapterOptions): ServiceAdapter;