import { type VerboseLevel } from "../auto-reply/thinking.js";
import { type CliDeps } from "../cli/deps.js";
import { type KaijiBotConfig } from "../config/config.js";
import { type SessionEntry } from "../config/sessions.js";
import { type RuntimeEnv } from "../runtime.js";
import type { AgentCommandIngressOpts, AgentCommandOpts } from "./command/types.js";
declare function resolveAgentRuntimeConfig(runtime: RuntimeEnv, params?: {
    runtimeTargetsChannelSecrets?: boolean;
}): Promise<{
    loadedRaw: KaijiBotConfig;
    sourceConfig: KaijiBotConfig;
    cfg: KaijiBotConfig;
}>;
declare function prepareAgentCommandExecution(opts: AgentCommandOpts & {
    senderIsOwner: boolean;
}, runtime: RuntimeEnv): Promise<{
    body: string;
    cfg: KaijiBotConfig;
    normalizedSpawned: import("./spawned-context.js").NormalizedSpawnedRunMetadata;
    agentCfg: import("../config/types.agent-defaults.ts").AgentDefaultsConfig | undefined;
    thinkOverride: import("../auto-reply/thinking.shared.ts").ThinkLevel | undefined;
    thinkOnce: import("../auto-reply/thinking.shared.ts").ThinkLevel | undefined;
    verboseOverride: VerboseLevel | undefined;
    timeoutMs: number;
    sessionId: string;
    sessionKey: string | undefined;
    sessionEntry: SessionEntry | undefined;
    sessionStore: Record<string, SessionEntry> | undefined;
    storePath: string;
    isNewSession: boolean;
    persistedThinking: import("../auto-reply/thinking.shared.ts").ThinkLevel | undefined;
    persistedVerbose: VerboseLevel | undefined;
    sessionAgentId: string;
    outboundSession: import("../infra/outbound/session-context.js").OutboundSessionContext | undefined;
    workspaceDir: string;
    agentDir: string;
    runId: string;
    acpManager: import("../acp/control-plane/manager.core.ts").AcpSessionManager;
    acpResolution: import("../acp/control-plane/manager.types.ts").AcpSessionResolution | null;
}>;
export declare function agentCommand(opts: AgentCommandOpts, runtime?: RuntimeEnv, deps?: CliDeps): Promise<{
    payloads: import("../infra/outbound/payloads.ts").OutboundPayloadJson[];
    meta: import("./pi-embedded-runner.ts").EmbeddedPiRunMeta;
}>;
export declare function agentCommandFromIngress(opts: AgentCommandIngressOpts, runtime?: RuntimeEnv, deps?: CliDeps): Promise<{
    payloads: import("../infra/outbound/payloads.ts").OutboundPayloadJson[];
    meta: import("./pi-embedded-runner.ts").EmbeddedPiRunMeta;
}>;
export declare const __testing: {
    resolveAgentRuntimeConfig: typeof resolveAgentRuntimeConfig;
    prepareAgentCommandExecution: typeof prepareAgentCommandExecution;
};
export {};
