//#region src/helpers/permissions/decorator.d.ts type LambdaFunction = (...args: any[]) => any; //#endregion //#region src/helpers/permissions/index.d.ts /** * Refresh current user permissions */ declare function refreshPermissions(): Promise; /** * Check if the user have the permission to use the function * * @param fnc The function * @param namespaceId The namespaces where the function can be used, check if at least one is true * * @returns If the user have the permission */ declare function hasPermission(fnc: LambdaFunction, namespaceIds?: string[]): boolean; //#endregion export { hasPermission, refreshPermissions }; //# sourceMappingURL=permissions.d.ts.map