declare function getAccess(codes?: string | (() => string)): boolean; declare function getAccess(codes: string[] | (() => string[])): boolean[]; declare type UseAccessType = typeof getAccess; interface UseAccessInterface extends UseAccessType { getAccess: typeof getAccess; } declare const useAccess: UseAccessInterface; export { useAccess };