import { i as OpenClawConfig } from "./types.openclaw-Dkap9jPv.js"; import { createLoggerBackedRuntime } from "./runtime-logger.js"; import { n as buildTimeoutAbortSignal } from "./fetch-timeout-CVas0A1r.js"; import { ZodType, z } from "zod"; //#region src/utils/zod-parse.d.ts declare function safeParseWithSchema(schema: ZodType, value: unknown): T | null; declare function safeParseJsonWithSchema(schema: ZodType, raw: string): T | null; //#endregion //#region src/plugin-sdk/extension-shared.d.ts type PassiveChannelStatusSnapshot = { configured?: boolean; running?: boolean; lastStartAt?: number | null; lastStopAt?: number | null; lastError?: string | null; probe?: unknown; lastProbeAt?: number | null; }; type TrafficStatusSnapshot = { lastInboundAt?: number | null; lastOutboundAt?: number | null; }; type StoppableMonitor = { stop: () => void; }; type RequireOpenAllowFromFn = (params: { policy?: string; allowFrom?: Array; ctx: z.RefinementCtx; path: Array; message: string; }) => void; declare function buildPassiveChannelStatusSummary(snapshot: PassiveChannelStatusSnapshot, extra?: TExtra): { configured: boolean; } & TExtra & { running: boolean; lastStartAt: number | null; lastStopAt: number | null; lastError: string | null; }; declare function buildPassiveProbedChannelStatusSummary(snapshot: PassiveChannelStatusSnapshot, extra?: TExtra): { configured: boolean; } & TExtra & { probe: unknown; lastProbeAt: number | null; running: boolean; lastStartAt: number | null; lastStopAt: number | null; lastError: string | null; }; declare function buildTrafficStatusSummary(snapshot?: TrafficStatusSnapshot | null): { lastInboundAt: number | null; lastOutboundAt: number | null; }; declare function runStoppablePassiveMonitor(params: { abortSignal: AbortSignal; start: () => Promise; }): Promise; declare function resolveLoggerBackedRuntime(runtime: TRuntime | undefined, logger: Parameters[0]["logger"]): TRuntime; declare function requireChannelOpenAllowFrom(params: { channel: string; policy?: string; allowFrom?: Array; ctx: z.RefinementCtx; requireOpenAllowFrom: RequireOpenAllowFromFn; }): void; declare function readStatusIssueFields(value: unknown, fields: readonly TField[]): Record | null; declare function coerceStatusIssueAccountId(value: unknown): string | undefined; declare function createDeferred(): { promise: Promise; resolve: (value: T | PromiseLike) => void; reject: (reason?: unknown) => void; }; type PackageJsonRequire = (id: string) => unknown; type PluginConfigIssuePathSegment = string | number; type PluginConfigIssue = { path: PluginConfigIssuePathSegment[]; message: string; }; type PluginConfigIssueMessageOptions = { invalidConfigMessage?: string; unknownKeyMessage?: (key: string) => string; rootInvalidTypeMessage?: string; }; declare function formatPluginConfigIssue(issue: z.ZodIssue | undefined, options?: PluginConfigIssueMessageOptions): string; declare function normalizePluginConfigIssuePath(path: readonly unknown[]): PluginConfigIssuePathSegment[]; declare function mapPluginConfigIssues(issues: readonly z.ZodIssue[], options?: PluginConfigIssueMessageOptions): PluginConfigIssue[]; declare function canResolveEnvSecretRefInReadOnlyPath(params: { cfg?: OpenClawConfig; provider: string; id: string; }): boolean; declare function readPluginPackageVersion(params: { require: PackageJsonRequire; candidates?: readonly string[]; fallback?: string; }): string; declare function resolveAmbientNodeProxyAgent(params?: { onError?: (error: unknown) => void; onUsingProxy?: () => void; protocol?: "http" | "https"; }): Promise; //#endregion export { buildPassiveChannelStatusSummary, buildPassiveProbedChannelStatusSummary, buildTimeoutAbortSignal, buildTrafficStatusSummary, canResolveEnvSecretRefInReadOnlyPath, coerceStatusIssueAccountId, createDeferred, formatPluginConfigIssue, mapPluginConfigIssues, normalizePluginConfigIssuePath, readPluginPackageVersion, readStatusIssueFields, requireChannelOpenAllowFrom, resolveAmbientNodeProxyAgent, resolveLoggerBackedRuntime, runStoppablePassiveMonitor, safeParseJsonWithSchema, safeParseWithSchema };