export declare function isAuthorized(opts: { allowAllUsers: boolean; allowedUserIds: number[]; userId?: number; }): boolean;