import { NoteData } from '../api'; import { Fetcher, Key, SWRConfiguration, SWRResponse } from 'swr'; export interface FetchResponse extends SWRResponse { isLoading: boolean; } export declare type Color = { name: string; cmyk?: [number, number, number, number]; hex: string; index?: number; }; export declare type Font = { family: string; size: number; weight: number; url?: string; }; export type { NoteData } from '../api'; /** * All GET requests use the lovepop API. */ export default function useFetch(key?: Key, fetcher?: Fetcher | null, config?: SWRConfiguration): FetchResponse; /** * Fetch note metadata and SVG string. */ export declare const useFetchNote: (id?: number | string, config?: SWRConfiguration) => FetchResponse<[NoteData, string], Error>; export declare const useFetchColors: (config?: SWRConfiguration) => FetchResponse; export declare const useFetchFonts: (config?: SWRConfiguration) => FetchResponse;