import { r as KlawConfig } from "./types.klaw-xKUw_Rz7.js"; import { Fr as ZodIssue, mt as ZodType, zr as $RefinementCtx } from "./schemas-CvPp2BJb.js"; import { t as createLoggerBackedRuntime } from "./runtime-logger-BZun4bLN.js"; //#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: $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: $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: ZodIssue | undefined, options?: PluginConfigIssueMessageOptions): string; declare function normalizePluginConfigIssuePath(path: readonly unknown[]): PluginConfigIssuePathSegment[]; declare function mapPluginConfigIssues(issues: readonly ZodIssue[], options?: PluginConfigIssueMessageOptions): PluginConfigIssue[]; declare function canResolveEnvSecretRefInReadOnlyPath(params: { cfg?: KlawConfig; 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 { safeParseWithSchema as _, coerceStatusIssueAccountId as a, mapPluginConfigIssues as c, readStatusIssueFields as d, requireChannelOpenAllowFrom as f, safeParseJsonWithSchema as g, runStoppablePassiveMonitor as h, canResolveEnvSecretRefInReadOnlyPath as i, normalizePluginConfigIssuePath as l, resolveLoggerBackedRuntime as m, buildPassiveProbedChannelStatusSummary as n, createDeferred as o, resolveAmbientNodeProxyAgent as p, buildTrafficStatusSummary as r, formatPluginConfigIssue as s, buildPassiveChannelStatusSummary as t, readPluginPackageVersion as u };