/**
 * Analytics event writer core module.
 *
 * Extracted from hooks/handlers/post-tool-use-analytics.ts.
 * Appends analytics events to events.jsonl.
 *
 * Never throws.
 *
 * @module core/analytics/event-writer
 */
import type { AnalyticsEvent } from './types.js';
export interface WriteResult {
    written: number;
}
/**
 * Extract plugin name from a skill name.
 * "sw:pm" → "specweave", "frontend-design:component" → "frontend-design", "my-skill" → "specweave"
 */
export declare function extractPlugin(skillName: string): string;
/**
 * Append an analytics event to events.jsonl.
 * Creates the analytics directory if it does not exist.
 */
export declare function appendAnalyticsEvent(analyticsDir: string, event: AnalyticsEvent): WriteResult;
/**
 * Build and append a skill analytics event.
 */
export declare function writeSkillEvent(analyticsDir: string, name: string, plugin?: string, timestamp?: string): WriteResult;
/**
 * Build and append an agent analytics event.
 */
export declare function writeAgentEvent(analyticsDir: string, name: string, timestamp?: string): WriteResult;
//# sourceMappingURL=event-writer.d.ts.map