import type { DeepRequired } from 'ts-essentials'; import type { AuthProvider, RuntimeConfig, SupportedAuthProviders } from '../types.js'; /** * 判断 value 中是否有值包含在 permissions 数组中 * * @param value 待验证的权限标签数组 * @param permissions 完整的权限标签数组 * @returns 权限是否通过 */ export declare const checkPermission: (value: string[], permissions: string[]) => boolean; /** * 根据 JSON pointer 规则获取对象属性 * * @param target 目标对象 * @param pointer JSON pointer * @returns 属性值 */ export declare const jsonPointerGet: (target: Record, pointer: string) => string | Record; /** * 获取 url 中的 origin 和 pathname * * @param url url 地址 * @returns origin, pathname 信息 */ export declare const getOriginAndPathnameFromURL: (url: string) => { origin: string | undefined; pathname: string | undefined; }; /** * 获取 type 类型策略配置 * * @param runtimeConfig nuxt runtime config * @param _type 策略类型 * @returns type 类型策略配置 */ export declare const useTypedConfig: (runtimeConfig: RuntimeConfig, _type: T) => Extract, { type: T; }>; /** * 判断 value 是否为非空对象 * * @param value 任意值 * @returns 布尔值 */ export declare const isNonEmptyObject: (value: any) => boolean;