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<T extends {
    identity?: any;
}>(toolsArg: any, guard: plugins.smartguard.Guard<T>, dataArg: T): Promise<void>;
/**
 * 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<void>;
/**
 * 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<void>;
