import type { Context, ContractToFunction } from '@aeriajs/types'; import { type description } from './description.js'; export declare const DownloadError: { readonly RangeNotSatisfiable: "RANGE_NOT_SATISFIABLE"; }; export declare const downloadContract: { readonly payload: { readonly type: "object"; readonly required: readonly ["fileId"]; readonly properties: { readonly fileId: { readonly type: "string"; }; readonly options: { readonly type: "array"; readonly items: { readonly enum: readonly ["picture", "download"]; }; }; readonly noHeaders: { readonly type: "boolean"; }; }; }; readonly response: [{ readonly type: "object"; readonly properties: { readonly _tag: { readonly const: "Error"; }; readonly result: { readonly const: undefined; readonly isConstUndefined: true; }; readonly error: { readonly type: "object"; readonly required: readonly ["httpStatus", "code"]; readonly properties: { readonly httpStatus: { readonly enum: [404, 416]; }; readonly code: { readonly enum: ["RESOURCE_NOT_FOUND", "RANGE_NOT_SATISFIABLE"]; }; readonly message: { readonly type: "string"; }; readonly details: { readonly type: "object"; readonly additionalProperties: true; }; }; }; }; }, { readonly type: "object"; readonly additionalProperties: true; }]; }; export declare const download: ContractToFunction>;