import type { ApplicationService } from '@adonisjs/core/types';
import type { AgentConsoleCommandsConfig } from '../define_config.js';
import { type FederatedConsoleApp } from '../federation/console.js';
import { type ConsoleAuthEnv } from '../federation/console_auth.js';
import type { AgoraDoctorResult } from './agora_doctor.js';
/** What `agent.console-commands` reads: the config and the siblings found in the app. */
export interface ConsoleCommandsInput {
    consoleCommands?: AgentConsoleCommandsConfig | undefined;
    apps: Record<string, FederatedConsoleApp>;
    env: ConsoleAuthEnv;
    hasAppKey: boolean;
    /** The APP_KEY-derived public key's short id, for the token label (the boot log's). */
    appKeyId?: string | undefined;
    /**
     * The deep check: report only the sides in crypto mode, each with a probe of the key (it exists,
     * and this process can encrypt and decrypt with it). Otherwise: every side's mode, no probe.
     */
    deep: boolean;
}
/**
 * `agent.console-commands`: how each side of the federated console authenticates. Error when a
 * side would take actions unauthenticated (the web process refuses to start then); with `deep`, the
 * crypto key is probed (it exists, and this process can use it).
 */
export declare function checkConsoleCommands(input: ConsoleCommandsInput): Promise<AgoraDoctorResult[]>;
/** Reads the app for {@link checkConsoleCommands}. */
export declare function consoleCommandsInput(app: ApplicationService, deep: boolean): Promise<ConsoleCommandsInput>;
//# sourceMappingURL=console_commands.d.ts.map