export type ScreenshotStorageBoundary = "input" | "contract" | "governance" | "scope" | "provider";
export type ScreenshotStorageGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type ScreenshotStorageContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: ScreenshotStorageGate;
    contract?: ScreenshotStorageGate;
    governance?: ScreenshotStorageGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type ScreenshotStorageRetentionPolicy = "ephemeral" | "session-only" | "session-scoped" | "persistent";
export type ScreenshotStorageTarget = {
    screenshotRef: string;
    storageTarget: string;
    retentionPolicy: ScreenshotStorageRetentionPolicy;
};
export type ScreenshotStorageProviderRequest = {
    operation: "computeruse.screenshotStorage.store";
    target: ScreenshotStorageTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type ScreenshotStorageProviderResult = {
    storedArtifactId: string;
    storageUri?: string;
    retentionPolicy?: ScreenshotStorageRetentionPolicy;
    metadata?: Readonly<Record<string, unknown>>;
};
export type ScreenshotStorageProvider = (request: ScreenshotStorageProviderRequest) => Promise<ScreenshotStorageProviderResult> | ScreenshotStorageProviderResult;
export type ScreenshotStorageRequest = {
    target?: unknown;
    context?: unknown;
    screenshotRef?: unknown;
    storageTarget?: unknown;
    retentionPolicy?: unknown;
    purpose?: unknown;
    metadata?: unknown;
    provider?: ScreenshotStorageProvider;
};
export type ScreenshotStorageErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_SCREENSHOT_REF" | "INVALID_SCREENSHOT_REF" | "MISSING_STORAGE_TARGET" | "INVALID_STORAGE_TARGET" | "INVALID_RETENTION_POLICY" | "MISSING_PURPOSE" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type ScreenshotStorageError = {
    code: ScreenshotStorageErrorCode;
    message: string;
    boundary: ScreenshotStorageBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type ScreenshotStorageAuditEvent = {
    type: string;
    toolId: "computeruse.screenshotStorage";
    invocationId: string;
    dryRun: boolean;
    screenshotRef?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type ScreenshotStorageOutput = {
    kind: "agentCore.basicTool.computeruse.screenshotStorage";
    target: ScreenshotStorageTarget;
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: true;
    permissionsRequired: readonly ["screen:read", "artifact:read", "artifact:write"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.artifact.store";
        operation: "computeruse.screenshotStorage.store";
        runtimeOwnsArtifactStorage: true;
        runtimeOwnsRetentionPolicy: true;
        baseToolOwnsTapStrategy: false;
    };
    storageEnvelope: {
        resource: "screen-artifact";
        stored: boolean;
        metadataOnly: boolean;
        screenshotRef: string;
        storageTarget: string;
        retentionPolicy: ScreenshotStorageRetentionPolicy;
        storedArtifactId?: string;
        storageUri?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type ScreenshotStorageResult = {
    ok: true;
    toolId: "computeruse.screenshotStorage";
    output: ScreenshotStorageOutput;
    audit: readonly ScreenshotStorageAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.screenshotStorage";
    error: ScreenshotStorageError;
    audit: readonly ScreenshotStorageAuditEvent[];
    events: readonly string[];
};
export declare const screenshotStorageDescriptor: {
    readonly toolId: "computeruse.screenshotStorage";
    readonly capability: "store-screenshot-artifact";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.screenshot";
    readonly defaultDryRun: true;
    readonly defaultRetentionPolicy: "session-scoped";
    readonly allowedStorageSchemes: readonly ["artifact://", "session://", "runtime://", "memory://"];
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.artifact.store";
    readonly permissionsRequired: readonly ["screen:read", "artifact:read", "artifact:write"];
    readonly unsafeSideEffects: true;
};
export declare function executeScreenshotStorage(request?: unknown): Promise<ScreenshotStorageResult>;
export declare function planScreenshotStorage(request?: unknown): Promise<ScreenshotStorageResult>;
