import { type Ref } from "vue"; export type UseGsiScriptReturn = { /** * Script loaded successfully * * @type {Readonly>} */ scriptLoaded: Readonly>; /** * Failed to load the GSI script * * @type {Readonly>} */ scriptLoadError: Readonly>; }; /** * Use google GSI script in the application. * * This is automatically called when you use any of * the provided composables such as `useOneTap` or using the `GoogleSignInButton` component. * * No matter how many time this function called, it only loads the script once if it not present. * * @export * @return {*} {UseGsiScriptReturn} */ export default function useGsiScript(): UseGsiScriptReturn;