import { Handler, Strings } from "@onebro/oba-common"; export declare const generateTkn: (payload: any, secret: string, opts?: any) => string; export declare const verifyTkn: (header: string, secret: string) => string | object; export declare const validateAPIAuthTkn: (secret: string) => Handler; export declare const validateAppUser: (cookieName: string, key: string) => Handler; export declare const refreshAppUser: (cookieName: string, key: string) => Handler; export declare const mapUserRole: (K: Strings, k?: string) => string; export declare const validateUserRole: (roles?: string[]) => Handler; export declare type OBNotificationData = { method: string; type: string; user: string; data: any; }; export declare const notifyUser: (o: OBNotificationData, doSend?: boolean | number) => Promise;