import { C as AcpRuntimeTurnResultError, S as AcpRuntimeTurnResult, _ as AcpRuntimeSessionMode, a as AcpElicitationRequest, b as AcpRuntimeTurnAttachment, c as AcpRuntime, d as AcpRuntimeControl, f as AcpRuntimeDoctorReport, g as AcpRuntimePromptMode, h as AcpRuntimeHandle, i as AcpElicitationMeta, l as AcpRuntimeCapabilities, m as AcpRuntimeEvent, n as AcpElicitationContext, o as AcpElicitationResponse, p as AcpRuntimeEnsureInput, r as AcpElicitationHandler, s as AcpJsonRpcId, t as AcpElicitationContentValue, u as AcpRuntimeConfigOptionResult, v as AcpRuntimeStatus, w as AcpSessionUpdateTag, x as AcpRuntimeTurnInput, y as AcpRuntimeTurn } from "../types-DWJRK4zx.js";
import { a as SessionAcpIdentity, c as SessionAcpMeta, i as AcpSessionRuntimeOptions, l as SessionId, n as AcpServerOptions, o as SessionAcpIdentitySource, r as AcpSession, s as SessionAcpIdentityState, t as AcpProvenanceMode, u as normalizeAcpProvenanceMode } from "../types-Cx-scs5J.js";
import { i as stringifyNonErrorCause } from "../error-coercion-BrwX_4Ji.js";
import { readBool, readMetadataNumber, readMetadataString, readNonNegativeInteger } from "./meta.js";
import { isParentOwnedBackgroundAcpSession, isRequesterParentOfBackgroundAcpSession } from "./session-interaction-mode.js";
import { AcpSessionLineageMeta, AcpSessionLineageRow, toAcpSessionLineageMeta } from "./session-lineage-meta.js";
import { AcpSessionStore, createInMemorySessionStore } from "./session.js";
import { a as isAcpRuntimeError, i as formatAcpErrorChain, n as AcpRuntimeError, o as toAcpRuntimeError, r as AcpRuntimeErrorCode, s as withAcpRuntimeErrorBoundary, t as ACP_ERROR_CODES } from "../errors-Buu3ylDF.js";
import { formatAcpRuntimeErrorText, toAcpRuntimeErrorText } from "./runtime/error-text.js";
import { ACP_SESSION_IDENTITY_RENDERER_VERSION, AcpSessionIdentifierRenderMode, resolveAcpSessionCwd, resolveAcpSessionIdentifierLinesFromIdentity, resolveAcpThreadSessionDetailLines } from "./runtime/session-identifiers.js";
import { createIdentityFromEnsure, createIdentityFromHandleEvent, createIdentityFromStatus, identityEquals, identityHasStableSessionId, isSessionIdentityPending, mergeSessionIdentity, resolveRuntimeHandleIdentifiersFromIdentity, resolveRuntimeResumeSessionId, resolveSessionIdentityFromMeta } from "./runtime/session-identity.js";
//#region packages/acp-core/src/error-format.d.ts
/** Installs a host-provided redactor used before ACP fallback secret-pattern redaction. */
export declare function configureAcpErrorRedactor(redactor: ((value: string) => string) | undefined): void;
/** Redacts common HTTP, payment, assignment, and private-key secrets from error text. */
export declare function redactSensitiveText(value: string): string;
//#endregion
//#region packages/acp-core/src/structured-auth-redaction.d.ts
export declare const HTTP_AUTH_SCHEME_PATTERN = "[A-Za-z0-9!#$%&'*+.^_`|~-]+";
export declare const HTTP_AUTH_OPAQUE_CREDENTIAL_PATTERN: string;
export declare const HTTP_AUTH_OPTIONAL_VALUE_WHITESPACE_PATTERN: string;
export declare const HTTP_AUTH_REQUIRED_VALUE_WHITESPACE_PATTERN: string;
export declare const HTTP_AUTH_LEGACY_VALUE_WHITESPACE_PATTERN: string;
export declare const HTTP_AUTH_HEADER_BOUNDARY_PATTERN: string;
export declare const HTTP_AUTH_SERIALIZED_QUOTE_PATTERN: string;
export declare const CREDENTIAL_STYLE_HEADER_REDACT_PATTERN: string;
export type StructuredAuthParamRange = {
  start: number;
  end: number;
};
export declare function findStructuredAuthParamRanges(value: string): StructuredAuthParamRange[];
export declare function redactStructuredAuthHeaders(value: string, replacement: string): string;
//#endregion
export { ACP_ERROR_CODES, ACP_SESSION_IDENTITY_RENDERER_VERSION, AcpElicitationContentValue, AcpElicitationContext, AcpElicitationHandler, AcpElicitationMeta, AcpElicitationRequest, AcpElicitationResponse, AcpJsonRpcId, AcpProvenanceMode, AcpRuntime, AcpRuntimeCapabilities, AcpRuntimeConfigOptionResult, AcpRuntimeControl, AcpRuntimeDoctorReport, AcpRuntimeEnsureInput, AcpRuntimeError, AcpRuntimeErrorCode, AcpRuntimeEvent, AcpRuntimeHandle, AcpRuntimePromptMode, AcpRuntimeSessionMode, AcpRuntimeStatus, AcpRuntimeTurn, AcpRuntimeTurnAttachment, AcpRuntimeTurnInput, AcpRuntimeTurnResult, AcpRuntimeTurnResultError, AcpServerOptions, AcpSession, AcpSessionIdentifierRenderMode, AcpSessionLineageMeta, AcpSessionLineageRow, AcpSessionRuntimeOptions, AcpSessionStore, AcpSessionUpdateTag, SessionAcpIdentity, SessionAcpIdentitySource, SessionAcpIdentityState, SessionAcpMeta, SessionId, createIdentityFromEnsure, createIdentityFromHandleEvent, createIdentityFromStatus, createInMemorySessionStore, formatAcpErrorChain, formatAcpRuntimeErrorText, identityEquals, identityHasStableSessionId, isAcpRuntimeError, isParentOwnedBackgroundAcpSession, isRequesterParentOfBackgroundAcpSession, isSessionIdentityPending, mergeSessionIdentity, normalizeAcpProvenanceMode, readBool, readMetadataNumber, readMetadataString, readNonNegativeInteger, resolveAcpSessionCwd, resolveAcpSessionIdentifierLinesFromIdentity, resolveAcpThreadSessionDetailLines, resolveRuntimeHandleIdentifiersFromIdentity, resolveRuntimeResumeSessionId, resolveSessionIdentityFromMeta, stringifyNonErrorCause, toAcpRuntimeError, toAcpRuntimeErrorText, toAcpSessionLineageMeta, withAcpRuntimeErrorBoundary };