import { n as EventPayload, r as EventSubscriber } from "./event-subscriber-base-DOVIZK7N.cjs"; //#region src/file.d.ts interface FileSubscriberConfig { /** File path to append newline-delimited JSON events to. */ path: string; /** Enable or disable the subscriber. Default `true`. */ enabled?: boolean; /** Pretty-print each event as indented JSON instead of one line. Default `false`. */ pretty?: boolean; /** Create parent directories if they do not exist. Default `true`. */ mkdir?: boolean; /** * Transform a payload before writing. Return `null` to skip the event. * Defaults to writing the normalized payload unchanged. */ transform?: (payload: EventPayload) => Record | null; } declare class FileSubscriber extends EventSubscriber { readonly name = "FileSubscriber"; readonly version = "1.0.0"; private readonly filePath; private readonly pretty; private readonly ensureDir; private readonly transform?; /** Serializes writes so concurrent events never interleave on disk. */ private writeChain; private dirEnsured; constructor(config: FileSubscriberConfig); protected sendToDestination(payload: EventPayload): Promise; private write; shutdown(): Promise; } //#endregion export { FileSubscriber, FileSubscriberConfig }; //# sourceMappingURL=file.d.cts.map