UNPKG

@hhgtech/hhg-components

Version:
17 lines (16 loc) 599 B
/// <reference types="react" /> /// <reference types="lodash" /> export type PreviewUrlType = { title?: string; url?: string; image?: string; description?: string; isFetching?: boolean; }; export declare const usePreviewUrl: (bannedWords: string[], onChange: (v: string) => void) => { previewUrl: PreviewUrlType; setPreviewUrl: import("react").Dispatch<import("react").SetStateAction<PreviewUrlType>>; invalidUrls: string[]; debounceInputModify: import("lodash").DebouncedFunc<(v: string) => void>; fetchPreviewData: (url: string) => void; };