export interface DownloadPermissionConfig { reportId: string; id: string; } /** * The file formats a report can be downloaded as. * * Excel type-guesses every value in a csv when the file is opened, so a room number such * as `1.5.2` is turned into a date and `007` loses its leading zeros. In xlsx each cell * carries its type explicitly, so text stays text. */ export declare const DOWNLOAD_FORMATS: readonly ["csv", "xlsx"]; export type DownloadFormat = (typeof DOWNLOAD_FORMATS)[number]; export declare const DEFAULT_DOWNLOAD_FORMAT: DownloadFormat; /** * Narrows an untrusted value to a supported format, falling back to csv. * * The result is interpolated into the outbound API path, so it must never be taken * straight from the request body. */ export declare const toDownloadFormat: (value: unknown) => DownloadFormat; /** * The API serves csv from the download endpoint itself and each other format from a * suffixed path, e.g. `/download/xlsx`. */ export declare const downloadPathSuffix: (format: DownloadFormat) => string;