/**
 * Analytics event writer — JSONL append-only with date-based rotation.
 *
 * Writes to ~/.takt/analytics/events/YYYY-MM-DD.jsonl when analytics.enabled = true.
 * Does nothing when disabled.
 */
import type { AnalyticsEvent } from './events.js';
export declare class AnalyticsWriter {
    private static instance;
    private enabled;
    private eventsDir;
    private constructor();
    static getInstance(): AnalyticsWriter;
    static resetInstance(): void;
    /**
     * Initialize writer.
     * @param enabled Whether analytics collection is active
     * @param eventsDir Absolute path to the events directory (e.g. ~/.takt/analytics/events)
     */
    init(enabled: boolean, eventsDir: string): void;
    isEnabled(): boolean;
    /** Append an analytics event to the current day's JSONL file */
    write(event: AnalyticsEvent): void;
}
export declare function initAnalyticsWriter(enabled: boolean, eventsDir: string): void;
export declare function resetAnalyticsWriter(): void;
export declare function isAnalyticsEnabled(): boolean;
export declare function writeAnalyticsEvent(event: AnalyticsEvent): void;
//# sourceMappingURL=writer.d.ts.map