export declare type NoteData = { 'graphic-url': string; id: number; message: string; 'ref-id': string; status: string; 'updated-at': string; 'user-id': string; }; export declare type ImageStorageParams = { params: { timestamp: string; /** * Comma separated values. */ tags: string; /** * Comma separated values. */ transformation: string; /** * Image format type. */ format: string; signature: string; api_key: string; }; url: string; }; /** * Create image storage parameters for cloudinary. */ export declare const fetchImageStorageParams: ({ endpoint }: { endpoint: string; }) => Promise; export declare const uploadImage: ({ url, body }: { url: string; body: FormData; }) => Promise<{ url: string; }>; declare type NoteCreationParams = { endpoint: string; body: FormData; }; export declare const createNote: ({ endpoint, body }: NoteCreationParams) => Promise<{ id: number; }>; interface NoteUpdateParams extends NoteCreationParams { id: number | string; } export declare const updateNote: ({ endpoint, body, id }: NoteUpdateParams) => Promise<{ id: number; }>; /** * Custom fetcher to get both graphic and note simultaneously since we need * both to be able to edit a note. */ export declare const fetchNote: (info: RequestInfo, init: RequestInit) => Promise<[NoteData, string]>; /** * Custom SWR fetcher to throw on any 4xx. */ declare const fetcher: (args_0: RequestInfo, args_1: RequestInit) => Promise; export default fetcher;