import { type McpToolResult } from "../../_shared/baseToolAdapter.js";
export type McpCreateResourcePermission = "mcp:connection:read" | "mcp:resource:create";
export type McpCreateResourceContext = {
    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 McpCreateResourcePermission[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type McpCreateResourceTarget = {
    serverId: string;
    uri: string;
    resourceType?: string;
    mimeType?: string;
};
export type McpCreateResourceRequest = {
    target?: Partial<McpCreateResourceTarget> | null;
    initialContent?: unknown;
    metadata?: Readonly<Record<string, unknown>>;
    context?: McpCreateResourceContext;
};
export type McpCreateResourceProviderRequest = {
    serverId: string;
    uri: string;
    resourceType?: string;
    mimeType?: string;
    initialContent?: unknown;
    metadata?: Readonly<Record<string, unknown>>;
};
export type McpCreateResourceProviderResult = {
    uri?: string;
    status: "created" | "already_exists" | "pending";
    revision?: string;
    providerMetadata?: Readonly<Record<string, unknown>>;
    raw?: unknown;
};
export type McpCreateResourceProvider = (request: McpCreateResourceProviderRequest, context: Readonly<Record<string, unknown>>) => Promise<McpCreateResourceProviderResult> | McpCreateResourceProviderResult;
export type McpCreateResourceEnvelope = {
    uri: string;
    state: "planned" | "created" | "already_exists" | "pending";
    created: boolean;
    contentAccepted: boolean;
    metadataKeys: readonly string[];
    revision?: string;
    source: "mockable-envelope" | "runtime-provider";
};
export type McpCreateResourceOutput = {
    kind: "agentCore.basicTool.mcp.createResource";
    target: McpCreateResourceTarget;
    dryRun: boolean;
    executionBlocked: boolean;
    providerCalled: boolean;
    permissionsRequired: readonly McpCreateResourcePermission[];
    unsafeSideEffects: true;
    acceptedScopes: readonly string[];
    resourceEnvelope: McpCreateResourceEnvelope;
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type McpCreateResourceErrorCode = "INVALID_REQUEST" | "INVALID_CONTEXT" | "MISSING_SERVER_ID" | "INVALID_SERVER_ID" | "MISSING_RESOURCE_URI" | "INVALID_RESOURCE_URI" | "INVALID_TARGET" | "INVALID_METADATA" | "SCOPE_REJECTED" | "PERMISSION_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "REAL_EXECUTION_BLOCKED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_REJECTED";
export type McpCreateResourceResult = McpToolResult<McpCreateResourceOutput, McpCreateResourceErrorCode>;
export declare const mcpCreateResourceDescriptor: {
    readonly toolId: "mcp.createResource";
    readonly capability: "create-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:create"];
    readonly unsafeSideEffects: true;
    readonly providerBoundary: "BaseToolExecutorPort.mcp.createResource";
};
export declare function planMcpCreateResource(request?: unknown): McpCreateResourceResult;
export declare function executeMcpCreateResource(request?: unknown, provider?: McpCreateResourceProvider): Promise<McpCreateResourceResult>;
