import { PropsWithChildren } from 'react'; export type Authorizer = (user?: User) => boolean; export type Props = { authorizer: Authorizer; }; export declare function IsAuthorized({ authorizer, children }: PropsWithChildren>): string | number | bigint | boolean | Iterable | Promise> | import("react").ReactPortal | Iterable | null | undefined> | import("react").JSX.Element;