import { c as TelemetrySink, e as TelemetryEnvelope } from '../sink-fetch-B1Yg4Til.js';

/**
 * Node-only file sink. Imports `node:fs` — DO NOT import this from a Worker
 * or edge runtime; use `./sink-fetch` instead.
 */

/** Append envelopes to a JSONL file, partitioned by repo + date. */
declare class FileTelemetrySink implements TelemetrySink {
    private readonly baseDir;
    private streams;
    constructor(baseDir: string);
    emit(envelope: TelemetryEnvelope): void;
    close(): Promise<void>;
}
/** Default location for local telemetry, mirroring bad CLI's convention. */
declare function defaultTelemetryDir(homeDir: string, override?: string): string;

export { FileTelemetrySink, defaultTelemetryDir };
