import * as plugins from '../../plugins.js'; import type { AdminHandler } from '../handlers/admin.handler.js'; import * as interfaces from '../../../dist_ts_interfaces/index.js'; /** * Helper function to use identity guards in handlers * * @example * // In a handler: * await passGuards(toolsArg, this.opsServerRef.adminHandler.validIdentityGuard, dataArg); */ export declare function passGuards(toolsArg: any, guard: plugins.smartguard.Guard, dataArg: T): Promise; /** * Helper to check admin identity in handlers and middleware. * Accepts both optional and required identity for flexibility. */ export declare function requireAdminIdentity(adminHandler: AdminHandler, dataArg: { identity?: interfaces.data.IIdentity; }): Promise; /** * Helper to check valid identity in handlers and middleware. * Accepts both optional and required identity for flexibility. */ export declare function requireValidIdentity(adminHandler: AdminHandler, dataArg: { identity?: interfaces.data.IIdentity; }): Promise;