import { ComputedRef } from 'vue-demi'; import { MaybeRefOrGetter } from '@vueuse/shared'; import { JwtPayload, JwtHeader } from 'jwt-decode'; interface UseJwtOptions { /** * Value returned when encounter error on decoding * * @default null */ fallbackValue?: Fallback; /** * Error callback for decoding */ onError?: (error: unknown) => void; } interface UseJwtReturn { header: ComputedRef
; payload: ComputedRef; } /** * Reactive decoded jwt token. * * @see https://vueuse.org/useJwt */ declare function useJwt(encodedJwt: MaybeRefOrGetter, options?: UseJwtOptions): UseJwtReturn; export { type UseJwtOptions, type UseJwtReturn, useJwt };