import type { LogLevel } from "../../logging/levels.js";
type ShouldLogVerbose = typeof import("../../globals.js").shouldLogVerbose;
type DispatchReplyWithBufferedBlockDispatcher = typeof import("../../auto-reply/reply/provider-dispatcher.js").dispatchReplyWithBufferedBlockDispatcher;
type CreateReplyDispatcherWithTyping = typeof import("../../auto-reply/reply/reply-dispatcher.js").createReplyDispatcherWithTyping;
type ResolveEffectiveMessagesConfig = typeof import("../../agents/identity.js").resolveEffectiveMessagesConfig;
type ResolveHumanDelayConfig = typeof import("../../agents/identity.js").resolveHumanDelayConfig;
type ResolveAgentRoute = typeof import("../../routing/resolve-route.js").resolveAgentRoute;
type BuildPairingReply = typeof import("../../pairing/pairing-messages.js").buildPairingReply;
type ReadChannelAllowFromStore = typeof import("../../pairing/pairing-store.js").readChannelAllowFromStore;
type UpsertChannelPairingRequest = typeof import("../../pairing/pairing-store.js").upsertChannelPairingRequest;
type FetchRemoteMedia = typeof import("../../media/fetch.js").fetchRemoteMedia;
type SaveMediaBuffer = typeof import("../../media/store.js").saveMediaBuffer;
type BuildMentionRegexes = typeof import("../../auto-reply/reply/mentions.js").buildMentionRegexes;
type MatchesMentionPatterns = typeof import("../../auto-reply/reply/mentions.js").matchesMentionPatterns;
type MatchesMentionWithExplicit = typeof import("../../auto-reply/reply/mentions.js").matchesMentionWithExplicit;
type ShouldAckReaction = typeof import("../../channels/ack-reactions.js").shouldAckReaction;
type RemoveAckReactionAfterReply = typeof import("../../channels/ack-reactions.js").removeAckReactionAfterReply;
type ResolveChannelGroupPolicy = typeof import("../../config/group-policy.js").resolveChannelGroupPolicy;
type ResolveChannelGroupRequireMention = typeof import("../../config/group-policy.js").resolveChannelGroupRequireMention;
type CreateInboundDebouncer = typeof import("../../auto-reply/inbound-debounce.js").createInboundDebouncer;
type ResolveInboundDebounceMs = typeof import("../../auto-reply/inbound-debounce.js").resolveInboundDebounceMs;
type ResolveCommandAuthorizedFromAuthorizers = typeof import("../../channels/command-gating.js").resolveCommandAuthorizedFromAuthorizers;
type ResolveTextChunkLimit = typeof import("../../auto-reply/chunk.js").resolveTextChunkLimit;
type ResolveChunkMode = typeof import("../../auto-reply/chunk.js").resolveChunkMode;
type ChunkMarkdownText = typeof import("../../auto-reply/chunk.js").chunkMarkdownText;
type ChunkMarkdownTextWithMode = typeof import("../../auto-reply/chunk.js").chunkMarkdownTextWithMode;
type ChunkText = typeof import("../../auto-reply/chunk.js").chunkText;
type ChunkTextWithMode = typeof import("../../auto-reply/chunk.js").chunkTextWithMode;
type ChunkByNewline = typeof import("../../auto-reply/chunk.js").chunkByNewline;
type ResolveMarkdownTableMode = typeof import("../../config/markdown-tables.js").resolveMarkdownTableMode;
type ConvertMarkdownTables = typeof import("../../markdown/tables.js").convertMarkdownTables;
type HasControlCommand = typeof import("../../auto-reply/command-detection.js").hasControlCommand;
type IsControlCommandMessage = typeof import("../../auto-reply/command-detection.js").isControlCommandMessage;
type ShouldComputeCommandAuthorized = typeof import("../../auto-reply/command-detection.js").shouldComputeCommandAuthorized;
type ShouldHandleTextCommands = typeof import("../../auto-reply/commands-registry.js").shouldHandleTextCommands;
type RunChannelTurn = typeof import("../../auto-reply/run-channel-turn.js").runChannelTurn;
type FinalizeInboundContext = typeof import("../../auto-reply/reply/inbound-context.js").finalizeInboundContext;
type FormatAgentEnvelope = typeof import("../../auto-reply/envelope.js").formatAgentEnvelope;
type FormatInboundEnvelope = typeof import("../../auto-reply/envelope.js").formatInboundEnvelope;
type ResolveEnvelopeFormatOptions = typeof import("../../auto-reply/envelope.js").resolveEnvelopeFormatOptions;
type ResolveStateDir = typeof import("../../config/paths.js").resolveStateDir;
type RecordInboundSession = typeof import("../../channels/session.js").recordInboundSession;
type RecordSessionMetaFromInbound = typeof import("../../config/sessions.js").recordSessionMetaFromInbound;
type ResolveStorePath = typeof import("../../config/sessions.js").resolveStorePath;
type ReadSessionUpdatedAt = typeof import("../../config/sessions.js").readSessionUpdatedAt;
type UpdateLastRoute = typeof import("../../config/sessions.js").updateLastRoute;
type LoadConfig = typeof import("../../config/config.js").loadConfig;
type WriteConfigFile = typeof import("../../config/config.js").writeConfigFile;
type RecordChannelActivity = typeof import("../../infra/channel-activity.js").recordChannelActivity;
type GetChannelActivity = typeof import("../../infra/channel-activity.js").getChannelActivity;
type EnqueueSystemEvent = typeof import("../../infra/system-events.js").enqueueSystemEvent;
type RunCommandWithTimeout = typeof import("../../process/exec.js").runCommandWithTimeout;
type FormatNativeDependencyHint = typeof import("./native-deps.js").formatNativeDependencyHint;
type LoadWebMedia = typeof import("../../media/web-media.js").loadWebMedia;
type DetectMime = typeof import("../../media/mime.js").detectMime;
type MediaKindFromMime = typeof import("../../media/constants.js").mediaKindFromMime;
type IsVoiceCompatibleAudio = typeof import("../../media/audio.js").isVoiceCompatibleAudio;
type GetImageMetadata = typeof import("../../media/image-ops.js").getImageMetadata;
type ResizeToJpeg = typeof import("../../media/image-ops.js").resizeToJpeg;
type CreateMemoryGetTool = typeof import("../../agents/tools/memory-tool.js").createMemoryGetTool;
type CreateMemorySearchTool = typeof import("../../agents/tools/memory-tool.js").createMemorySearchTool;
type CreateMemoryPinTool = typeof import("../../agents/tools/memory-tool.js").createMemoryPinTool;
type CreateMemoryUnpinTool = typeof import("../../agents/tools/memory-tool.js").createMemoryUnpinTool;
type RegisterMemoryCli = typeof import("../../cli/memory-cli.js").registerMemoryCli;
type ListSlackDirectoryGroupsLive = typeof import("../../slack/directory-live.js").listSlackDirectoryGroupsLive;
type ListSlackDirectoryPeersLive = typeof import("../../slack/directory-live.js").listSlackDirectoryPeersLive;
type ProbeSlack = typeof import("../../slack/probe.js").probeSlack;
type ResolveSlackChannelAllowlist = typeof import("../../slack/resolve-channels.js").resolveSlackChannelAllowlist;
type ResolveSlackUserAllowlist = typeof import("../../slack/resolve-users.js").resolveSlackUserAllowlist;
type SendMessageSlack = typeof import("../../slack/send.js").sendMessageSlack;
type MonitorSlackProvider = typeof import("../../slack/index.js").monitorSlackProvider;
type HandleSlackAction = typeof import("../../agents/tools/slack-actions.js").handleSlackAction;
export type RuntimeLogger = {
    debug?: (message: string, meta?: Record<string, unknown>) => void;
    info: (message: string, meta?: Record<string, unknown>) => void;
    warn: (message: string, meta?: Record<string, unknown>) => void;
    error: (message: string, meta?: Record<string, unknown>) => void;
};
export type PluginRuntime = {
    version: string;
    config: {
        loadConfig: LoadConfig;
        writeConfigFile: WriteConfigFile;
    };
    system: {
        enqueueSystemEvent: EnqueueSystemEvent;
        runCommandWithTimeout: RunCommandWithTimeout;
        formatNativeDependencyHint: FormatNativeDependencyHint;
    };
    media: {
        loadWebMedia: LoadWebMedia;
        detectMime: DetectMime;
        mediaKindFromMime: MediaKindFromMime;
        isVoiceCompatibleAudio: IsVoiceCompatibleAudio;
        getImageMetadata: GetImageMetadata;
        resizeToJpeg: ResizeToJpeg;
    };
    tools: {
        createMemoryGetTool: CreateMemoryGetTool;
        createMemoryPinTool: CreateMemoryPinTool;
        createMemorySearchTool: CreateMemorySearchTool;
        createMemoryUnpinTool: CreateMemoryUnpinTool;
        registerMemoryCli: RegisterMemoryCli;
    };
    channel: {
        text: {
            chunkByNewline: ChunkByNewline;
            chunkMarkdownText: ChunkMarkdownText;
            chunkMarkdownTextWithMode: ChunkMarkdownTextWithMode;
            chunkText: ChunkText;
            chunkTextWithMode: ChunkTextWithMode;
            resolveChunkMode: ResolveChunkMode;
            resolveTextChunkLimit: ResolveTextChunkLimit;
            hasControlCommand: HasControlCommand;
            resolveMarkdownTableMode: ResolveMarkdownTableMode;
            convertMarkdownTables: ConvertMarkdownTables;
        };
        reply: {
            dispatchReplyWithBufferedBlockDispatcher: DispatchReplyWithBufferedBlockDispatcher;
            createReplyDispatcherWithTyping: CreateReplyDispatcherWithTyping;
            resolveEffectiveMessagesConfig: ResolveEffectiveMessagesConfig;
            resolveHumanDelayConfig: ResolveHumanDelayConfig;
            runChannelTurn: RunChannelTurn;
            finalizeInboundContext: FinalizeInboundContext;
            formatAgentEnvelope: FormatAgentEnvelope;
            /** @deprecated Prefer `BodyForAgent` + structured user-context blocks (do not build plaintext envelopes for prompts). */
            formatInboundEnvelope: FormatInboundEnvelope;
            resolveEnvelopeFormatOptions: ResolveEnvelopeFormatOptions;
        };
        routing: {
            resolveAgentRoute: ResolveAgentRoute;
        };
        pairing: {
            buildPairingReply: BuildPairingReply;
            readAllowFromStore: ReadChannelAllowFromStore;
            upsertPairingRequest: UpsertChannelPairingRequest;
        };
        media: {
            fetchRemoteMedia: FetchRemoteMedia;
            saveMediaBuffer: SaveMediaBuffer;
        };
        activity: {
            record: RecordChannelActivity;
            get: GetChannelActivity;
        };
        session: {
            resolveStorePath: ResolveStorePath;
            readSessionUpdatedAt: ReadSessionUpdatedAt;
            recordSessionMetaFromInbound: RecordSessionMetaFromInbound;
            recordInboundSession: RecordInboundSession;
            updateLastRoute: UpdateLastRoute;
        };
        mentions: {
            buildMentionRegexes: BuildMentionRegexes;
            matchesMentionPatterns: MatchesMentionPatterns;
            matchesMentionWithExplicit: MatchesMentionWithExplicit;
        };
        reactions: {
            shouldAckReaction: ShouldAckReaction;
            removeAckReactionAfterReply: RemoveAckReactionAfterReply;
        };
        groups: {
            resolveGroupPolicy: ResolveChannelGroupPolicy;
            resolveRequireMention: ResolveChannelGroupRequireMention;
        };
        debounce: {
            createInboundDebouncer: CreateInboundDebouncer;
            resolveInboundDebounceMs: ResolveInboundDebounceMs;
        };
        commands: {
            resolveCommandAuthorizedFromAuthorizers: ResolveCommandAuthorizedFromAuthorizers;
            isControlCommandMessage: IsControlCommandMessage;
            shouldComputeCommandAuthorized: ShouldComputeCommandAuthorized;
            shouldHandleTextCommands: ShouldHandleTextCommands;
        };
        slack: {
            listDirectoryGroupsLive: ListSlackDirectoryGroupsLive;
            listDirectoryPeersLive: ListSlackDirectoryPeersLive;
            probeSlack: ProbeSlack;
            resolveChannelAllowlist: ResolveSlackChannelAllowlist;
            resolveUserAllowlist: ResolveSlackUserAllowlist;
            sendMessageSlack: SendMessageSlack;
            monitorSlackProvider: MonitorSlackProvider;
            handleSlackAction: HandleSlackAction;
        };
    };
    logging: {
        shouldLogVerbose: ShouldLogVerbose;
        getChildLogger: (bindings?: Record<string, unknown>, opts?: {
            level?: LogLevel;
        }) => RuntimeLogger;
    };
    state: {
        resolveStateDir: ResolveStateDir;
    };
};
export {};
