import type { EmbedVouch } from '../../types'; import { UseFetchReturn } from './useFetch'; import { Environment } from '../environment'; interface UseFetchEmbedReturn extends Omit, 'refetch'> { getVouch: (hashId: string, apiKey?: string) => void; } type UseFetchEmbedArgs = { env?: Environment; apiKey?: string; }; /** * Embed fetch API hook * * @param {string} apiKey Optional * @returns GraphQL-alike `loading`, `error`, `data` and `getVouch` function to trigger fetch */ export default function ({ env, apiKey }: UseFetchEmbedArgs): UseFetchEmbedReturn; export {};