import type { AstroIntegration } from "astro"; export interface EntrolyticsOptions { /** * Your Entrolytics website ID */ websiteId: string; /** * Entrolytics host URL (for self-hosted instances) * @default 'https://api.entrolytics.click' */ host?: string; /** * Automatically track page views * @default true */ autoTrack?: boolean; /** * Track outbound link clicks automatically * @default true */ trackOutboundLinks?: boolean; /** * Track file downloads (pdf, zip, etc.) * @default false */ trackFileDownloads?: boolean; /** * Respect browser Do Not Track setting * @default false */ respectDnt?: boolean; /** * Domains for cross-domain tracking */ domains?: string[]; /** * Cache tracking script locally * @default false */ cacheScript?: boolean; /** * Custom tag for A/B testing */ tag?: string; /** * Strip query parameters from URLs * @default false */ excludeSearch?: boolean; /** * Strip hash from URLs * @default false */ excludeHash?: boolean; } /** * Astro integration for Entrolytics analytics * * @example * Zero-config (reads from import.meta.env): * ```ts * // astro.config.mjs * import { defineConfig } from 'astro/config'; * import entrolytics from '@entrolytics/astro'; * * export default defineConfig({ * integrations: [entrolytics()], * }); * ``` * * @example * Explicit config: * ```ts * export default defineConfig({ * integrations: [ * entrolytics({ * websiteId: 'your-website-id', * }), * ], * }); * ``` */ export default function entrolytics(options?: Partial): AstroIntegration; export type { AstroIntegration }; //# sourceMappingURL=index.d.ts.map