export type CustomFormatCapabilityBoundary = "input" | "contract" | "governance" | "provider-config";
export type CustomFormatCapabilityGate = {
    accepted: boolean;
    reason?: string;
};
export type CustomFormatCapabilityTrace = {
    correlationId?: string;
    callerId?: string;
    source?: string;
};
export type CustomFormatCapabilityClaimInput = {
    providerId?: string;
    endpointId?: string;
    capabilityId?: string;
    label?: string;
    description?: string;
    inputChannels?: readonly string[];
    outputChannels?: readonly string[];
    toolUse?: boolean;
    streaming?: boolean;
    fileExchange?: boolean;
    contextWindowTokens?: number;
    raw?: Readonly<Record<string, unknown>>;
    metadata?: Readonly<Record<string, unknown>>;
    trace?: CustomFormatCapabilityTrace;
    contract?: CustomFormatCapabilityGate;
    governance?: CustomFormatCapabilityGate;
};
export type CustomFormatCapabilityFeatureFlags = {
    toolUse: boolean;
    streaming: boolean;
    fileExchange: boolean;
    contextWindowTokens?: number;
};
export type CustomFormatReceivedCapability = {
    providerId: string;
    endpointId: string;
    capabilityId: string;
    label: string;
    description?: string;
    inputChannels: readonly string[];
    outputChannels: readonly string[];
    featureFlags: CustomFormatCapabilityFeatureFlags;
    rawEnvelope: {
        retained: false;
        keyHints: readonly string[];
    };
    metadata: Readonly<Record<string, unknown>>;
    trace: CustomFormatCapabilityTrace;
    audit: {
        receivedBy: "customFormat.capabilityReceiver";
        dryRun: true;
        unsafeSideEffects: false;
        rawProviderFieldsExposed: false;
        next: "capabilityDefiner";
    };
};
export type CustomFormatCapabilityReceiveErrorCode = "MISSING_PROVIDER_ID" | "MISSING_ENDPOINT_ID" | "MISSING_CAPABILITY_ID" | "MISSING_CAPABILITY_SIGNAL" | "INVALID_CONTEXT_WINDOW" | "INVALID_RAW_ENVELOPE" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED";
export type CustomFormatCapabilityReceiveError = {
    code: CustomFormatCapabilityReceiveErrorCode;
    message: string;
    boundary: CustomFormatCapabilityBoundary;
    safeForRuntimeInspection: true;
    rawProviderFieldsExposed: false;
};
export type CustomFormatCapabilityReceiveResult = {
    ok: true;
    capability: CustomFormatReceivedCapability;
    events: readonly string[];
} | {
    ok: false;
    error: CustomFormatCapabilityReceiveError;
    events: readonly string[];
};
export declare const customFormatCapabilityReceiverDescriptor: {
    readonly layer: "agent_modelAdapter.actualInvocationLayer.customFormat";
    readonly capability: "customFormat.capabilityReceiver";
    readonly purpose: "receive an external custom provider capability description into an inspection-safe envelope";
    readonly dryRun: true;
    readonly unsafeSideEffects: false;
    readonly rawProviderFieldsExposed: false;
};
export declare function receiveCustomFormatCapability(request?: CustomFormatCapabilityClaimInput): CustomFormatCapabilityReceiveResult;
