import type { EponymeFormDefinitionBase } from '../../types/index.js'; import type { EponymeFormSubmission } from '../services/eponyme-form-store.js'; export type EponymeSubmissionExportFormat = 'csv' | 'json'; /** * The export as a stream: rows are pulled from `submissions` only as fast as the client reads, so a form of * any size never sits in memory whole. * * CSV columns are `id`, `receivedAt`, then one per declared field, in declaration order; a key the form * no longer declares is left out, as the dashboard does. JSON is an array of `{ id, receivedAt, data }`. */ export declare function createEponymeSubmissionExportStream(definition: Pick, submissions: AsyncIterable, format: EponymeSubmissionExportFormat): ReadableStream; /** * `from` and `to` as the dashboard sends them: a calendar day (`2026-01-31`) covers that whole UTC day, a * full ISO timestamp is taken as it is. `to` is turned into an exclusive bound. */ export declare function readEponymeExportRange(from: unknown, to: unknown): { from?: Date; to?: Date; } | { error: string; };