///
import { IncomingMessage as Req, ServerResponse as Res } from 'node:http';
import type { SendFileOptions } from '@tinyhttp/send';
export type DownloadOptions = SendFileOptions & Partial<{
headers: Record;
}>;
type Callback = (err?: any) => void;
export declare const download: = Res>(req: Request_1, res: Response_1) => (path: string, filename?: string | Callback, options?: DownloadOptions | Callback, cb?: Callback) => Response_1;
export declare const attachment: >(res: Response_1) => (filename?: string) => Response_1;
export {};
//# sourceMappingURL=download.d.ts.map