import AjvPkg, { type ErrorObject } from "ajv";
import type { SessionsPatchResult } from "../session-utils.types.js";
import { type KoiEvent, KoiEventSchema, type KoiIdentityParams, KoiIdentityParamsSchema, type KoiIdentityResult, KoiIdentityResultSchema, KoiParamsSchema, type KoiSummary, KoiSummarySchema, type KoiFileEntry, KoiFileEntrySchema, type KoiCreateParams, KoiCreateParamsSchema, type KoiCreateResult, KoiCreateResultSchema, type KoiUpdateParams, KoiUpdateParamsSchema, type KoiUpdateResult, KoiUpdateResultSchema, type KoiDeleteParams, KoiDeleteParamsSchema, type KoiDeleteResult, KoiDeleteResultSchema, type KoiFilesGetParams, KoiFilesGetParamsSchema, type KoiFilesGetResult, KoiFilesGetResultSchema, type KoiFilesListParams, KoiFilesListParamsSchema, type KoiFilesListResult, KoiFilesListResultSchema, type KoiFilesSetParams, KoiFilesSetParamsSchema, type KoiFilesSetResult, KoiFilesSetResultSchema, type KoiListParams, KoiListParamsSchema, type KoiListResult, KoiListResultSchema, type KoiWaitParams, type ChannelsLogoutParams, ChannelsLogoutParamsSchema, type ChannelsStatusParams, ChannelsStatusParamsSchema, type ChannelsStatusResult, ChannelsStatusResultSchema, type ChatEvent, ChatEventSchema, ChatHistoryParamsSchema, type ChatInjectParams, ChatInjectParamsSchema, ChatSendParamsSchema, type ConfigApplyParams, ConfigApplyParamsSchema, type ConfigGetParams, ConfigGetParamsSchema, type ConfigPatchParams, ConfigPatchParamsSchema, type ConfigSchemaParams, ConfigSchemaParamsSchema, type ConfigSchemaResponse, ConfigSchemaResponseSchema, type ConfigSetParams, ConfigSetParamsSchema, type ConnectParams, ConnectParamsSchema, type CronAddParams, CronAddParamsSchema, type CronJob, CronJobSchema, type CronListParams, CronListParamsSchema, type CronRemoveParams, CronRemoveParamsSchema, type CronRunLogEntry, type CronRunParams, CronRunParamsSchema, type CronRunsParams, CronRunsParamsSchema, type CronStatusParams, CronStatusParamsSchema, type CronUpdateParams, CronUpdateParamsSchema, type DevicePairApproveParams, type DevicePairListParams, type DevicePairRejectParams, type ExecApprovalsGetParams, type ExecApprovalsSetParams, type ExecApprovalsSnapshot, ErrorCodes, type ErrorShape, ErrorShapeSchema, type EventFrame, EventFrameSchema, errorShape, type GatewayFrame, GatewayFrameSchema, type HelloOk, HelloOkSchema, type LogsTailParams, LogsTailParamsSchema, type LogsTailResult, LogsTailResultSchema, ModelsListParamsSchema, type NodeEventParams, type NodeInvokeParams, NodeInvokeParamsSchema, type NodeInvokeResultParams, type NodeListParams, NodeListParamsSchema, type NodePairApproveParams, NodePairApproveParamsSchema, type NodePairListParams, NodePairListParamsSchema, type NodePairRejectParams, NodePairRejectParamsSchema, type NodePairRequestParams, NodePairRequestParamsSchema, type NodePairVerifyParams, NodePairVerifyParamsSchema, type PollParams, PollParamsSchema, PROTOCOL_VERSION, type PresenceEntry, PresenceEntrySchema, ProtocolSchemas, type RequestFrame, RequestFrameSchema, type ResponseFrame, ResponseFrameSchema, SendParamsSchema, type SessionsCompactParams, SessionsCompactParamsSchema, type SessionsDeleteParams, SessionsDeleteParamsSchema, type SessionsListParams, SessionsListParamsSchema, type SessionsPatchParams, SessionsPatchParamsSchema, type SessionsPreviewParams, SessionsPreviewParamsSchema, type SessionsResetParams, SessionsResetParamsSchema, type SessionsResolveParams, type SessionsUsageParams, SessionsUsageParamsSchema, type ShutdownEvent, ShutdownEventSchema, type SkillsBinsParams, type SkillsBinsResult, type SkillsInstallParams, SkillsInstallParamsSchema, type SkillsStatusParams, SkillsStatusParamsSchema, type SkillsUpdateParams, SkillsUpdateParamsSchema, type Snapshot, SnapshotSchema, type StateVersion, StateVersionSchema, type TalkModeParams, type TickEvent, TickEventSchema, type UpdateRunParams, UpdateRunParamsSchema, type WakeParams, WakeParamsSchema, type WebLoginStartParams, WebLoginStartParamsSchema, type WebLoginWaitParams, WebLoginWaitParamsSchema, type WizardCancelParams, WizardCancelParamsSchema, type WizardNextParams, WizardNextParamsSchema, type WizardNextResult, WizardNextResultSchema, type WizardStartParams, WizardStartParamsSchema, type WizardStartResult, WizardStartResultSchema, type WizardStatusParams, WizardStatusParamsSchema, type WizardStatusResult, WizardStatusResultSchema, type WizardStep, WizardStepSchema } from "./schema.js";
export declare const validateConnectParams: AjvPkg.ValidateFunction<{
    permissions?: {
        [x: string]: boolean;
    } | undefined;
    commands?: string[] | undefined;
    auth?: {
        token?: string | undefined;
        password?: string | undefined;
    } | undefined;
    role?: string | undefined;
    scopes?: string[] | undefined;
    caps?: string[] | undefined;
    pathEnv?: string | undefined;
    device?: {
        nonce?: string | undefined;
        id: string;
        publicKey: string;
        signature: string;
        signedAt: number;
    } | undefined;
    locale?: string | undefined;
    userAgent?: string | undefined;
    client: {
        displayName?: string | undefined;
        deviceFamily?: string | undefined;
        modelIdentifier?: string | undefined;
        instanceId?: string | undefined;
        mode: "cli" | "node" | "test" | "webchat" | "ui" | "backend" | "probe";
        platform: string;
        version: string;
        id: "cli" | "test" | "webchat-ui" | "skykoi-control-ui" | "webchat" | "gateway-client" | "skykoi-macos" | "skykoi-ios" | "skykoi-android" | "node-host" | "fingerprint" | "skykoi-probe";
    };
    minProtocol: number;
    maxProtocol: number;
}>;
export declare const validateRequestFrame: AjvPkg.ValidateFunction<{
    params?: unknown;
    type: "req";
    method: string;
    id: string;
}>;
export declare const validateResponseFrame: AjvPkg.ValidateFunction<{
    error?: {
        details?: unknown;
        retryAfterMs?: number | undefined;
        retryable?: boolean | undefined;
        message: string;
        code: string;
    } | undefined;
    payload?: unknown;
    type: "res";
    id: string;
    ok: boolean;
}>;
export declare const validateEventFrame: AjvPkg.ValidateFunction<{
    seq?: number | undefined;
    payload?: unknown;
    stateVersion?: {
        presence: number;
        health: number;
    } | undefined;
    type: "event";
    event: string;
}>;
export declare const validateSendParams: AjvPkg.ValidateFunction<{
    message: any;
    to: any;
    idempotencyKey: any;
} & {
    message: any;
} & {
    to: any;
} & {
    idempotencyKey: any;
}>;
export declare const validatePollParams: AjvPkg.ValidateFunction<{
    channel?: string | undefined;
    accountId?: string | undefined;
    maxSelections?: number | undefined;
    durationHours?: number | undefined;
    to: string;
    options: string[];
    idempotencyKey: string;
    question: string;
}>;
export declare const validateKoiParams: AjvPkg.ValidateFunction<{
    message: any;
    idempotencyKey: any;
} & {
    message: any;
} & {
    idempotencyKey: any;
}>;
export declare const validateKoiIdentityParams: AjvPkg.ValidateFunction<{
    koiId?: string | undefined;
    sessionKey?: string | undefined;
}>;
export declare const validateKoiWaitParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    runId: string;
}>;
export declare const validateWakeParams: AjvPkg.ValidateFunction<{
    text: string;
    mode: "now" | "next-heartbeat";
}>;
export declare const validateKoiListParams: AjvPkg.ValidateFunction<{}>;
export declare const validateKoiCreateParams: AjvPkg.ValidateFunction<{
    emoji?: string | undefined;
    avatar?: string | undefined;
    name: string;
    workspace: string;
}>;
export declare const validateKoiUpdateParams: AjvPkg.ValidateFunction<{
    name?: string | undefined;
    workspace?: string | undefined;
    model?: string | undefined;
    avatar?: string | undefined;
    koiId: string;
}>;
export declare const validateKoiDeleteParams: AjvPkg.ValidateFunction<{
    deleteFiles?: boolean | undefined;
    koiId: string;
}>;
export declare const validateKoiFilesListParams: AjvPkg.ValidateFunction<{
    koiId: string;
}>;
export declare const validateKoiFilesGetParams: AjvPkg.ValidateFunction<{
    name: string;
    koiId: string;
}>;
export declare const validateKoiFilesSetParams: AjvPkg.ValidateFunction<{
    name: string;
    content: string;
    koiId: string;
}>;
export declare const validateNodePairRequestParams: AjvPkg.ValidateFunction<{
    silent?: boolean | undefined;
    commands?: string[] | undefined;
    platform?: string | undefined;
    version?: string | undefined;
    displayName?: string | undefined;
    remoteIp?: string | undefined;
    deviceFamily?: string | undefined;
    modelIdentifier?: string | undefined;
    caps?: string[] | undefined;
    coreVersion?: string | undefined;
    uiVersion?: string | undefined;
    nodeId: string;
}>;
export declare const validateNodePairListParams: AjvPkg.ValidateFunction<{}>;
export declare const validateNodePairApproveParams: AjvPkg.ValidateFunction<{
    requestId: string;
}>;
export declare const validateNodePairRejectParams: AjvPkg.ValidateFunction<{
    requestId: string;
}>;
export declare const validateNodePairVerifyParams: AjvPkg.ValidateFunction<{
    token: string;
    nodeId: string;
}>;
export declare const validateNodeRenameParams: AjvPkg.ValidateFunction<{
    displayName: string;
    nodeId: string;
}>;
export declare const validateNodeListParams: AjvPkg.ValidateFunction<{}>;
export declare const validateNodeDescribeParams: AjvPkg.ValidateFunction<{
    nodeId: string;
}>;
export declare const validateNodeInvokeParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    params?: unknown;
    idempotencyKey: string;
    nodeId: string;
    command: string;
}>;
export declare const validateNodeInvokeResultParams: AjvPkg.ValidateFunction<{
    error?: {
        message?: string | undefined;
        code?: string | undefined;
    } | undefined;
    payload?: unknown;
    payloadJSON?: string | undefined;
    id: string;
    ok: boolean;
    nodeId: string;
}>;
export declare const validateNodeEventParams: AjvPkg.ValidateFunction<{
    payload?: unknown;
    payloadJSON?: string | undefined;
    event: string;
}>;
export declare const validateSessionsListParams: AjvPkg.ValidateFunction<{
    search?: string | undefined;
    label?: string | undefined;
    koiId?: string | undefined;
    limit?: number | undefined;
    spawnedBy?: string | undefined;
    activeMinutes?: number | undefined;
    includeGlobal?: boolean | undefined;
    includeUnknown?: boolean | undefined;
    includeDerivedTitles?: boolean | undefined;
    includeLastMessage?: boolean | undefined;
}>;
export declare const validateSessionsPreviewParams: AjvPkg.ValidateFunction<{
    limit?: number | undefined;
    maxChars?: number | undefined;
    keys: string[];
}>;
export declare const validateSessionsResolveParams: AjvPkg.ValidateFunction<{
    label?: string | undefined;
    koiId?: string | undefined;
    key?: string | undefined;
    sessionId?: string | undefined;
    spawnedBy?: string | undefined;
    includeGlobal?: boolean | undefined;
    includeUnknown?: boolean | undefined;
}>;
export declare const validateSessionsPatchParams: AjvPkg.ValidateFunction<{
    label?: string | null | undefined;
    model?: string | null | undefined;
    spawnedBy?: string | null | undefined;
    thinkingLevel?: string | null | undefined;
    verboseLevel?: string | null | undefined;
    reasoningLevel?: string | null | undefined;
    elevatedLevel?: string | null | undefined;
    execHost?: string | null | undefined;
    execSecurity?: string | null | undefined;
    execAsk?: string | null | undefined;
    execNode?: string | null | undefined;
    responseUsage?: "off" | "full" | "on" | "tokens" | null | undefined;
    groupActivation?: "always" | "mention" | null | undefined;
    sendPolicy?: "allow" | "deny" | null | undefined;
    key: string;
}>;
export declare const validateSessionsResetParams: AjvPkg.ValidateFunction<{
    deleteTranscript?: boolean | undefined;
    hardDelete?: boolean | undefined;
    key: string;
}>;
export declare const validateSessionsDeleteParams: AjvPkg.ValidateFunction<{
    deleteTranscript?: boolean | undefined;
    hardDelete?: boolean | undefined;
    key: string;
}>;
export declare const validateSessionsCompactParams: AjvPkg.ValidateFunction<{
    maxLines?: number | undefined;
    key: string;
}>;
export declare const validateSessionsUsageParams: AjvPkg.ValidateFunction<{
    key?: string | undefined;
    limit?: number | undefined;
    startDate?: string | undefined;
    endDate?: string | undefined;
    includeContextWeight?: boolean | undefined;
}>;
export declare const validateConfigGetParams: AjvPkg.ValidateFunction<{}>;
export declare const validateConfigSetParams: AjvPkg.ValidateFunction<{
    baseHash?: string | undefined;
    raw: string;
}>;
export declare const validateConfigApplyParams: AjvPkg.ValidateFunction<{
    sessionKey?: string | undefined;
    baseHash?: string | undefined;
    note?: string | undefined;
    restartDelayMs?: number | undefined;
    raw: string;
}>;
export declare const validateConfigPatchParams: AjvPkg.ValidateFunction<{
    sessionKey?: string | undefined;
    baseHash?: string | undefined;
    note?: string | undefined;
    restartDelayMs?: number | undefined;
    raw: string;
}>;
export declare const validateConfigSchemaParams: AjvPkg.ValidateFunction<{}>;
export declare const validateWizardStartParams: AjvPkg.ValidateFunction<{
    mode?: "local" | "remote" | undefined;
    workspace?: string | undefined;
}>;
export declare const validateWizardNextParams: AjvPkg.ValidateFunction<{
    answer?: {
        value?: unknown;
        stepId: string;
    } | undefined;
    sessionId: string;
}>;
export declare const validateWizardCancelParams: AjvPkg.ValidateFunction<{
    sessionId: string;
}>;
export declare const validateWizardStatusParams: AjvPkg.ValidateFunction<{
    sessionId: string;
}>;
export declare const validateTalkModeParams: AjvPkg.ValidateFunction<{
    phase?: string | undefined;
    enabled: boolean;
}>;
export declare const validateChannelsStatusParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    probe?: boolean | undefined;
}>;
export declare const validateChannelsLogoutParams: AjvPkg.ValidateFunction<{
    accountId?: string | undefined;
    channel: string;
}>;
export declare const validateModelsListParams: AjvPkg.ValidateFunction<{}>;
export declare const validateSkillsStatusParams: AjvPkg.ValidateFunction<{
    koiId?: string | undefined;
}>;
export declare const validateSkillsBinsParams: AjvPkg.ValidateFunction<{}>;
export declare const validateSkillsInstallParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    name: string;
    installId: string;
}>;
export declare const validateSkillsUpdateParams: AjvPkg.ValidateFunction<{
    enabled?: boolean | undefined;
    env?: {
        [x: string]: string;
    } | undefined;
    apiKey?: string | undefined;
    skillKey: string;
}>;
export declare const validateCronListParams: AjvPkg.ValidateFunction<{
    includeDisabled?: boolean | undefined;
}>;
export declare const validateCronStatusParams: AjvPkg.ValidateFunction<{}>;
export declare const validateCronAddParams: AjvPkg.ValidateFunction<{
    enabled?: boolean | undefined;
    koiId?: string | null | undefined;
    description?: string | undefined;
    deleteAfterRun?: boolean | undefined;
    delivery?: {
        channel?: string | undefined;
        to?: string | undefined;
        bestEffort?: boolean | undefined;
        mode: "none" | "announce";
    } | undefined;
    name: string;
    schedule: {
        at: string;
        kind: "at";
    } | {
        anchorMs?: number | undefined;
        kind: "every";
        everyMs: number;
    } | {
        tz?: string | undefined;
        kind: "cron";
        expr: string;
    };
    sessionTarget: "main" | "isolated";
    wakeMode: "now" | "next-heartbeat";
    payload: {
        text: string;
        kind: "systemEvent";
    } | {
        channel?: string | undefined;
        thinking?: string | undefined;
        model?: string | undefined;
        timeoutSeconds?: number | undefined;
        to?: string | undefined;
        deliver?: boolean | undefined;
        allowUnsafeExternalContent?: boolean | undefined;
        bestEffortDeliver?: boolean | undefined;
        message: string;
        kind: "koiTurn";
    };
}>;
export declare const validateCronUpdateParams: AjvPkg.ValidateFunction<{
    id: string;
    patch: {
        enabled?: boolean | undefined;
        name?: string | undefined;
        koiId?: string | null | undefined;
        state?: {
            lastError?: string | undefined;
            nextRunAtMs?: number | undefined;
            runningAtMs?: number | undefined;
            lastRunAtMs?: number | undefined;
            lastStatus?: "error" | "ok" | "skipped" | undefined;
            lastDurationMs?: number | undefined;
        } | undefined;
        description?: string | undefined;
        deleteAfterRun?: boolean | undefined;
        schedule?: {
            at: string;
            kind: "at";
        } | {
            anchorMs?: number | undefined;
            kind: "every";
            everyMs: number;
        } | {
            tz?: string | undefined;
            kind: "cron";
            expr: string;
        } | undefined;
        sessionTarget?: "main" | "isolated" | undefined;
        wakeMode?: "now" | "next-heartbeat" | undefined;
        payload?: {
            text?: string | undefined;
            kind: "systemEvent";
        } | {
            channel?: string | undefined;
            thinking?: string | undefined;
            message?: string | undefined;
            model?: string | undefined;
            timeoutSeconds?: number | undefined;
            to?: string | undefined;
            deliver?: boolean | undefined;
            allowUnsafeExternalContent?: boolean | undefined;
            bestEffortDeliver?: boolean | undefined;
            kind: "koiTurn";
        } | undefined;
        delivery?: {
            channel?: string | undefined;
            mode?: "none" | "announce" | undefined;
            to?: string | undefined;
            bestEffort?: boolean | undefined;
        } | undefined;
    };
} | {
    patch: {
        enabled?: boolean | undefined;
        name?: string | undefined;
        koiId?: string | null | undefined;
        state?: {
            lastError?: string | undefined;
            nextRunAtMs?: number | undefined;
            runningAtMs?: number | undefined;
            lastRunAtMs?: number | undefined;
            lastStatus?: "error" | "ok" | "skipped" | undefined;
            lastDurationMs?: number | undefined;
        } | undefined;
        description?: string | undefined;
        deleteAfterRun?: boolean | undefined;
        schedule?: {
            at: string;
            kind: "at";
        } | {
            anchorMs?: number | undefined;
            kind: "every";
            everyMs: number;
        } | {
            tz?: string | undefined;
            kind: "cron";
            expr: string;
        } | undefined;
        sessionTarget?: "main" | "isolated" | undefined;
        wakeMode?: "now" | "next-heartbeat" | undefined;
        payload?: {
            text?: string | undefined;
            kind: "systemEvent";
        } | {
            channel?: string | undefined;
            thinking?: string | undefined;
            message?: string | undefined;
            model?: string | undefined;
            timeoutSeconds?: number | undefined;
            to?: string | undefined;
            deliver?: boolean | undefined;
            allowUnsafeExternalContent?: boolean | undefined;
            bestEffortDeliver?: boolean | undefined;
            kind: "koiTurn";
        } | undefined;
        delivery?: {
            channel?: string | undefined;
            mode?: "none" | "announce" | undefined;
            to?: string | undefined;
            bestEffort?: boolean | undefined;
        } | undefined;
    };
    jobId: string;
}>;
export declare const validateCronRemoveParams: AjvPkg.ValidateFunction<{
    id: string;
} | {
    jobId: string;
}>;
export declare const validateCronRunParams: AjvPkg.ValidateFunction<{
    mode?: "force" | "due" | undefined;
    id: string;
} | {
    mode?: "force" | "due" | undefined;
    jobId: string;
}>;
export declare const validateCronRunsParams: AjvPkg.ValidateFunction<{
    limit?: number | undefined;
    id: string;
} | {
    limit?: number | undefined;
    jobId: string;
}>;
export declare const validateDevicePairListParams: AjvPkg.ValidateFunction<{}>;
export declare const validateDevicePairApproveParams: AjvPkg.ValidateFunction<{
    requestId: string;
}>;
export declare const validateDevicePairRejectParams: AjvPkg.ValidateFunction<{
    requestId: string;
}>;
export declare const validateDeviceTokenRotateParams: AjvPkg.ValidateFunction<{
    scopes?: string[] | undefined;
    deviceId: string;
    role: string;
}>;
export declare const validateDeviceTokenRevokeParams: AjvPkg.ValidateFunction<{
    deviceId: string;
    role: string;
}>;
export declare const validateExecApprovalsGetParams: AjvPkg.ValidateFunction<{}>;
export declare const validateExecApprovalsSetParams: AjvPkg.ValidateFunction<{
    baseHash?: string | undefined;
    file: {
        socket?: {
            path?: string | undefined;
            token?: string | undefined;
        } | undefined;
        defaults?: {
            ask?: string | undefined;
            security?: string | undefined;
            askFallback?: string | undefined;
            autoAllowSkills?: boolean | undefined;
        } | undefined;
        kois?: {
            [x: string]: {
                allowlist?: {
                    id?: string | undefined;
                    lastUsedAt?: number | undefined;
                    lastUsedCommand?: string | undefined;
                    lastResolvedPath?: string | undefined;
                    pattern: string;
                }[] | undefined;
                ask?: string | undefined;
                security?: string | undefined;
                askFallback?: string | undefined;
                autoAllowSkills?: boolean | undefined;
            };
        } | undefined;
        version: 1;
    };
}>;
export declare const validateExecApprovalRequestParams: AjvPkg.ValidateFunction<{
    ask?: string | null | undefined;
    timeoutMs?: number | undefined;
    cwd?: string | null | undefined;
    koiId?: string | null | undefined;
    id?: string | undefined;
    host?: string | null | undefined;
    security?: string | null | undefined;
    resolvedPath?: string | null | undefined;
    sessionKey?: string | null | undefined;
    command: string;
}>;
export declare const validateExecApprovalResolveParams: AjvPkg.ValidateFunction<{
    id: string;
    decision: string;
}>;
export declare const validateExecApprovalsNodeGetParams: AjvPkg.ValidateFunction<{
    nodeId: string;
}>;
export declare const validateExecApprovalsNodeSetParams: AjvPkg.ValidateFunction<{
    baseHash?: string | undefined;
    file: {
        socket?: {
            path?: string | undefined;
            token?: string | undefined;
        } | undefined;
        defaults?: {
            ask?: string | undefined;
            security?: string | undefined;
            askFallback?: string | undefined;
            autoAllowSkills?: boolean | undefined;
        } | undefined;
        kois?: {
            [x: string]: {
                allowlist?: {
                    id?: string | undefined;
                    lastUsedAt?: number | undefined;
                    lastUsedCommand?: string | undefined;
                    lastResolvedPath?: string | undefined;
                    pattern: string;
                }[] | undefined;
                ask?: string | undefined;
                security?: string | undefined;
                askFallback?: string | undefined;
                autoAllowSkills?: boolean | undefined;
            };
        } | undefined;
        version: 1;
    };
    nodeId: string;
}>;
export declare const validateLogsTailParams: AjvPkg.ValidateFunction<{
    maxBytes?: number | undefined;
    limit?: number | undefined;
    cursor?: number | undefined;
}>;
export declare const validateChatHistoryParams: AjvPkg.ValidateFunction<{
    sessionKey: any;
}>;
export declare const validateChatSendParams: AjvPkg.ValidateFunction<{
    message: any;
    sessionKey: any;
    idempotencyKey: any;
} & {
    message: any;
} & {
    sessionKey: any;
} & {
    idempotencyKey: any;
}>;
export declare const validateChatAbortParams: AjvPkg.ValidateFunction<{
    runId?: string | undefined;
    sessionKey: string;
}>;
export declare const validateChatInjectParams: AjvPkg.ValidateFunction<{
    label?: string | undefined;
    role?: "user" | "assistant" | undefined;
    message: string;
    sessionKey: string;
}>;
export declare const validateUpdateRunParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    sessionKey?: string | undefined;
    note?: string | undefined;
    restartDelayMs?: number | undefined;
}>;
export declare const validateWebLoginStartParams: AjvPkg.ValidateFunction<{
    force?: boolean | undefined;
    verbose?: boolean | undefined;
    timeoutMs?: number | undefined;
    accountId?: string | undefined;
}>;
export declare const validateWebLoginWaitParams: AjvPkg.ValidateFunction<{
    timeoutMs?: number | undefined;
    accountId?: string | undefined;
}>;
export declare function formatValidationErrors(errors: ErrorObject[] | null | undefined): string;
export { ConnectParamsSchema, HelloOkSchema, RequestFrameSchema, ResponseFrameSchema, EventFrameSchema, GatewayFrameSchema, PresenceEntrySchema, SnapshotSchema, ErrorShapeSchema, StateVersionSchema, KoiEventSchema, ChatEventSchema, SendParamsSchema, PollParamsSchema, KoiParamsSchema, KoiIdentityParamsSchema, KoiIdentityResultSchema, WakeParamsSchema, NodePairRequestParamsSchema, NodePairListParamsSchema, NodePairApproveParamsSchema, NodePairRejectParamsSchema, NodePairVerifyParamsSchema, NodeListParamsSchema, NodeInvokeParamsSchema, SessionsListParamsSchema, SessionsPreviewParamsSchema, SessionsPatchParamsSchema, SessionsResetParamsSchema, SessionsDeleteParamsSchema, SessionsCompactParamsSchema, SessionsUsageParamsSchema, ConfigGetParamsSchema, ConfigSetParamsSchema, ConfigApplyParamsSchema, ConfigPatchParamsSchema, ConfigSchemaParamsSchema, ConfigSchemaResponseSchema, WizardStartParamsSchema, WizardNextParamsSchema, WizardCancelParamsSchema, WizardStatusParamsSchema, WizardStepSchema, WizardNextResultSchema, WizardStartResultSchema, WizardStatusResultSchema, ChannelsStatusParamsSchema, ChannelsStatusResultSchema, ChannelsLogoutParamsSchema, WebLoginStartParamsSchema, WebLoginWaitParamsSchema, KoiSummarySchema, KoiFileEntrySchema, KoiCreateParamsSchema, KoiCreateResultSchema, KoiUpdateParamsSchema, KoiUpdateResultSchema, KoiDeleteParamsSchema, KoiDeleteResultSchema, KoiFilesListParamsSchema, KoiFilesListResultSchema, KoiFilesGetParamsSchema, KoiFilesGetResultSchema, KoiFilesSetParamsSchema, KoiFilesSetResultSchema, KoiListParamsSchema, KoiListResultSchema, ModelsListParamsSchema, SkillsStatusParamsSchema, SkillsInstallParamsSchema, SkillsUpdateParamsSchema, CronJobSchema, CronListParamsSchema, CronStatusParamsSchema, CronAddParamsSchema, CronUpdateParamsSchema, CronRemoveParamsSchema, CronRunParamsSchema, CronRunsParamsSchema, LogsTailParamsSchema, LogsTailResultSchema, ChatHistoryParamsSchema, ChatSendParamsSchema, ChatInjectParamsSchema, UpdateRunParamsSchema, TickEventSchema, ShutdownEventSchema, ProtocolSchemas, PROTOCOL_VERSION, ErrorCodes, errorShape, };
export type { GatewayFrame, ConnectParams, HelloOk, RequestFrame, ResponseFrame, EventFrame, PresenceEntry, Snapshot, ErrorShape, StateVersion, KoiEvent, KoiIdentityParams, KoiIdentityResult, KoiWaitParams, ChatEvent, TickEvent, ShutdownEvent, WakeParams, NodePairRequestParams, NodePairListParams, NodePairApproveParams, DevicePairListParams, DevicePairApproveParams, DevicePairRejectParams, ConfigGetParams, ConfigSetParams, ConfigApplyParams, ConfigPatchParams, ConfigSchemaParams, ConfigSchemaResponse, WizardStartParams, WizardNextParams, WizardCancelParams, WizardStatusParams, WizardStep, WizardNextResult, WizardStartResult, WizardStatusResult, TalkModeParams, ChannelsStatusParams, ChannelsStatusResult, ChannelsLogoutParams, WebLoginStartParams, WebLoginWaitParams, KoiSummary, KoiFileEntry, KoiCreateParams, KoiCreateResult, KoiUpdateParams, KoiUpdateResult, KoiDeleteParams, KoiDeleteResult, KoiFilesListParams, KoiFilesListResult, KoiFilesGetParams, KoiFilesGetResult, KoiFilesSetParams, KoiFilesSetResult, KoiListParams, KoiListResult, SkillsStatusParams, SkillsBinsParams, SkillsBinsResult, SkillsInstallParams, SkillsUpdateParams, NodePairRejectParams, NodePairVerifyParams, NodeListParams, NodeInvokeParams, NodeInvokeResultParams, NodeEventParams, SessionsListParams, SessionsPreviewParams, SessionsResolveParams, SessionsPatchParams, SessionsPatchResult, SessionsResetParams, SessionsDeleteParams, SessionsCompactParams, SessionsUsageParams, CronJob, CronListParams, CronStatusParams, CronAddParams, CronUpdateParams, CronRemoveParams, CronRunParams, CronRunsParams, CronRunLogEntry, ExecApprovalsGetParams, ExecApprovalsSetParams, ExecApprovalsSnapshot, LogsTailParams, LogsTailResult, PollParams, UpdateRunParams, ChatInjectParams, };
