import { type McpToolResult } from "../../_shared/baseToolAdapter.js";
export type McpDeleteResourcePermission = "mcp:connection:read" | "mcp:resource:delete";
export type McpDeleteResourceContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: {
        accepted?: boolean;
        allowed?: boolean;
        reason?: string;
    };
    contract?: {
        accepted?: boolean;
        reason?: string;
    };
    governance?: {
        accepted?: boolean;
        reason?: string;
    };
    allowedServerIds?: readonly string[];
    allowedUriPrefixes?: readonly string[];
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    grantedPermissions?: readonly McpDeleteResourcePermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type McpDeleteResourceTarget = {
    serverId: string;
    uri: string;
    expectedRevision?: string;
};
export type McpDeleteResourceRequest = {
    target?: Partial<McpDeleteResourceTarget> | null;
    reason?: string;
    context?: McpDeleteResourceContext;
};
export type McpDeleteResourceProviderRequest = McpDeleteResourceTarget & {
    reason?: string;
};
export type McpDeleteResourceProviderResult = {
    uri?: string;
    status: "deleted" | "not_found" | "conflict" | "pending";
    providerMetadata?: Readonly<Record<string, unknown>>;
    raw?: unknown;
};
export type McpDeleteResourceProvider = (request: McpDeleteResourceProviderRequest, context: Readonly<Record<string, unknown>>) => Promise<McpDeleteResourceProviderResult> | McpDeleteResourceProviderResult;
export type McpDeleteResourceEnvelope = {
    uri: string;
    state: "planned" | "deleted" | "not_found" | "conflict" | "pending";
    deleted: boolean;
    deletionPlanned: boolean;
    reason?: string;
    source: "mockable-envelope" | "runtime-provider";
};
export type McpDeleteResourceOutput = {
    kind: "agentCore.basicTool.mcp.deleteResource";
    target: McpDeleteResourceTarget;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    permissionsRequired: readonly McpDeleteResourcePermission[];
    unsafeSideEffects: true;
    acceptedScopes: readonly string[];
    resourceEnvelope: McpDeleteResourceEnvelope;
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type McpDeleteResourceErrorCode = "INVALID_REQUEST" | "INVALID_CONTEXT" | "MISSING_SERVER_ID" | "INVALID_SERVER_ID" | "MISSING_RESOURCE_URI" | "INVALID_RESOURCE_URI" | "INVALID_REASON" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "REAL_EXECUTION_BLOCKED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type McpDeleteResourceResult = McpToolResult<McpDeleteResourceOutput, McpDeleteResourceErrorCode>;
export declare const mcpDeleteResourceDescriptor: {
    readonly toolId: "mcp.deleteResource";
    readonly capability: "delete-resource";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.mcpBase.resource";
    readonly defaultDryRun: true;
    readonly tapOwnsApproval: true;
    readonly runtimeOwnsMcpClient: true;
    readonly permissionsRequired: readonly ["mcp:connection:read", "mcp:resource:delete"];
    readonly unsafeSideEffects: true;
    readonly providerBoundary: "BaseToolExecutorPort.mcp.deleteResource";
};
export declare function planMcpDeleteResource(request?: unknown): McpDeleteResourceResult;
export declare function executeMcpDeleteResource(request?: unknown, provider?: McpDeleteResourceProvider): Promise<McpDeleteResourceResult>;
