import type { RegistryScriptInput } from '#nuxt-scripts/types'; import { SegmentOptions } from './schemas.js'; export { SegmentOptions }; export type SegmentInput = RegistryScriptInput; interface AnalyticsApi { track: (event: string, properties?: Record) => void; page: (name?: string, properties?: Record) => void; identify: (userId: string, traits?: Record, options?: Record) => void; group: (groupId: string, traits?: Record, options?: Record) => void; alias: (userId: string, previousId: string, options?: Record) => void; reset: () => void; /** * @internal */ methods: string[]; /** * @internal */ factory: (method: string) => (...args: any[]) => AnalyticsApi; /** * @internal */ push: (args: any[]) => void; } export type SegmentApi = Pick; declare global { interface Window extends SegmentApi { } } export declare function useScriptSegment(_options?: SegmentInput): import("#nuxt-scripts/types").UseScriptContext;