@jrmc/adonis-attachment
Version:
Turn any field on your Lucid model to an attachment data type
17 lines • 831 B
TypeScript
/**
* @jrmc/adonis-attachment
*
* @license MIT
* @copyright Jeremy Chaufourier <jeremy@chaufourier.fr>
*/
import type { Input } from '../types/input.js';
import type { BlurhashOptions } from '../types/converter.js';
export declare function cleanObject(obj: any): any;
export declare function use(module: string): Promise<any>;
export declare function bufferToTempFile(input: Buffer): Promise<string>;
export declare function streamToTempFile(input: NodeJS.ReadableStream): Promise<string>;
export declare function downloadToTempFile(input: URL): Promise<string>;
export declare function isBase64(str: string): boolean;
export declare function imageToBlurhash(input: Input, options?: BlurhashOptions): Promise<string>;
export declare function extractPathParameters(path: string): string[];
//# sourceMappingURL=helpers.d.ts.map