import type * as Bun from 'bun';
import { type TNetworkId_S } from '@flux/shared/types';
/**
 * This route is used to authorize a network authority.
 *
 * The plain-text token value sent in the request body is validated against
 * the local {@link NetworkTokenCache}. The cache is kept in sync via Redis
 * pub/sub events emitted by the portal on token creation, rotation, or
 * deletion — so no database round-trip is unless it doesn't exist locally.
 *
 * @param { Bun.BunRequest } request - The incoming HTTP request
 *
 * @returns { Promise<Response> } The HTTP response with auth token or error
 */
export declare const authorizeNetworkAuthority: (request: Bun.BunRequest, hardcodedNetworkCredentials?: Map<TNetworkId_S, string>) => Promise<Response>;
