import React from 'react'; import { Label } from '@/api'; export * from '@/components/Auth/default'; export declare const noAuthTip: any; type AuthKey = keyof typeof noAuthTip; export interface IAuthOptions { authKey: AuthKey | AuthKey[]; authType?: 'oneof' | 'every'; title?: string; message?: React.ReactNode; jump?: boolean; extra?: React.ReactNode; auth?: typeof noAuthTip; } export declare const appNoAuthTip: any; export declare const hasEnvAuth: (labels: Label[], authLabel?: string[] | string) => boolean; export declare const AuthComponent: React.FC<{ options: IAuthOptions; }>; export declare function withAuth(Component: React.ComponentType, options: IAuthOptions): (props: T) => JSX.Element;