export type ScreenRecordingStorageBoundary = "input" | "contract" | "governance" | "scope" | "provider";
export type ScreenRecordingStorageGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type ScreenRecordingStorageContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: ScreenRecordingStorageGate;
    contract?: ScreenRecordingStorageGate;
    governance?: ScreenRecordingStorageGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type ScreenRecordingStorageRetentionPolicy = "ephemeral" | "session-only" | "session-scoped" | "persistent";
export type ScreenRecordingStorageTarget = {
    recordingRef: string;
    storageTarget: string;
    retentionPolicy: ScreenRecordingStorageRetentionPolicy;
};
export type ScreenRecordingStorageProviderRequest = {
    operation: "computeruse.screenRecordingStorage.finalize";
    target: ScreenRecordingStorageTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type ScreenRecordingStorageProviderResult = {
    artifactId: string;
    mimeType: string;
    storageUri?: string;
    retentionPolicy?: ScreenRecordingStorageRetentionPolicy;
    metadata?: Readonly<Record<string, unknown>>;
};
export type ScreenRecordingStorageProvider = (request: ScreenRecordingStorageProviderRequest) => Promise<ScreenRecordingStorageProviderResult> | ScreenRecordingStorageProviderResult;
export type ScreenRecordingStorageRequest = {
    target?: unknown;
    context?: unknown;
    recordingRef?: unknown;
    storageTarget?: unknown;
    retentionPolicy?: unknown;
    purpose?: unknown;
    metadata?: unknown;
    provider?: ScreenRecordingStorageProvider;
};
export type ScreenRecordingStorageErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_RECORDING_REF" | "INVALID_RECORDING_REF" | "MISSING_STORAGE_TARGET" | "INVALID_STORAGE_TARGET" | "INVALID_RETENTION_POLICY" | "MISSING_PURPOSE" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type ScreenRecordingStorageError = {
    code: ScreenRecordingStorageErrorCode;
    message: string;
    boundary: ScreenRecordingStorageBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type ScreenRecordingStorageAuditEvent = {
    type: string;
    toolId: "computeruse.screenRecordingStorage";
    invocationId: string;
    dryRun: boolean;
    recordingRef?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type ScreenRecordingStorageOutput = {
    kind: "agentCore.basicTool.computeruse.screenRecordingStorage";
    target: ScreenRecordingStorageTarget;
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: true;
    permissionsRequired: readonly ["screen:record", "recording:session", "artifact:write"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.stopRecording";
        operation: "computeruse.screenRecordingStorage.finalize";
        runtimeOwnsRecordingSession: true;
        runtimeOwnsArtifactStorage: true;
        runtimeOwnsRetentionPolicy: true;
        baseToolOwnsTapStrategy: false;
    };
    storageEnvelope: {
        resource: "screen-recording";
        finalized: boolean;
        stored: boolean;
        metadataOnly: boolean;
        recordingRef: string;
        storageTarget: string;
        retentionPolicy: ScreenRecordingStorageRetentionPolicy;
        artifactId?: string;
        mimeType?: string;
        storageUri?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type ScreenRecordingStorageResult = {
    ok: true;
    toolId: "computeruse.screenRecordingStorage";
    output: ScreenRecordingStorageOutput;
    audit: readonly ScreenRecordingStorageAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.screenRecordingStorage";
    error: ScreenRecordingStorageError;
    audit: readonly ScreenRecordingStorageAuditEvent[];
    events: readonly string[];
};
export declare const screenRecordingStorageDescriptor: {
    readonly toolId: "computeruse.screenRecordingStorage";
    readonly capability: "finalize-and-store-screen-recording";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.screenRecording";
    readonly defaultDryRun: true;
    readonly defaultRetentionPolicy: "session-scoped";
    readonly allowedStorageSchemes: readonly ["artifact://", "session://", "runtime://", "memory://"];
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.stopRecording";
    readonly permissionsRequired: readonly ["screen:record", "recording:session", "artifact:write"];
    readonly unsafeSideEffects: true;
};
export declare function executeScreenRecordingStorage(request?: unknown): Promise<ScreenRecordingStorageResult>;
export declare function planScreenRecordingStorage(request?: unknown): Promise<ScreenRecordingStorageResult>;
