useBeacon(): { sendBeacon: ( url: string, data?: string | Blob | FormData | URLSearchParams, options?: BeaconOptions, ) => boolean; get state(): BeaconState; subscribe(callback: (state: BeaconState) => void): () => boolean;} Returns {
sendBeacon: (
url: string,
data?: string | Blob | FormData | URLSearchParams,
options?: BeaconOptions,
) => boolean;
get state(): BeaconState;
subscribe(callback: (state: BeaconState) => void): () => boolean;
}