export type RectangularSelectionScreenRecordingBoundary = "input" | "contract" | "governance" | "scope" | "resource" | "provider";
export type RectangularSelectionScreenRecordingGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type RectangularSelectionScreenRecordingContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: RectangularSelectionScreenRecordingGate;
    contract?: RectangularSelectionScreenRecordingGate;
    governance?: RectangularSelectionScreenRecordingGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenRecordingCoordinateSpace = "screen" | "window" | "normalized";
export type RectangularSelectionScreenRecordingRect = {
    x: number;
    y: number;
    width: number;
    height: number;
    coordinateSpace: RectangularSelectionScreenRecordingCoordinateSpace;
};
export type RectangularSelectionScreenRecordingOutputFormat = "video/webm" | "video/mp4" | "video/quicktime";
export type RectangularSelectionScreenRecordingTarget = {
    displayId: string;
    rect: RectangularSelectionScreenRecordingRect;
    maxDurationMs: number;
    frameRate: number;
    includeCursor: boolean;
    includeAudio: boolean;
    outputFormat: RectangularSelectionScreenRecordingOutputFormat;
    destinationHint?: string;
};
export type RectangularSelectionScreenRecordingProviderRequest = {
    operation: "computeruse.rectangularSelectionScreenRecording.start";
    target: RectangularSelectionScreenRecordingTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type RectangularSelectionScreenRecordingProviderResult = {
    recordingId: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenRecordingProvider = (request: RectangularSelectionScreenRecordingProviderRequest) => Promise<RectangularSelectionScreenRecordingProviderResult> | RectangularSelectionScreenRecordingProviderResult;
export type RectangularSelectionScreenRecordingRequest = {
    target?: unknown;
    context?: unknown;
    displayId?: unknown;
    rect?: unknown;
    region?: unknown;
    coordinateSpace?: unknown;
    maxDurationMs?: unknown;
    frameRate?: unknown;
    includeCursor?: unknown;
    includeAudio?: unknown;
    outputFormat?: unknown;
    destinationHint?: unknown;
    purpose?: unknown;
    metadata?: unknown;
    provider?: RectangularSelectionScreenRecordingProvider;
};
export type RectangularSelectionScreenRecordingErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_PURPOSE" | "MISSING_RECT" | "INVALID_DISPLAY_ID" | "INVALID_RECT" | "RECT_TOO_LARGE" | "INVALID_COORDINATE_SPACE" | "INVALID_MAX_DURATION" | "INVALID_FRAME_RATE" | "INVALID_INCLUDE_CURSOR" | "INVALID_INCLUDE_AUDIO" | "INVALID_OUTPUT_FORMAT" | "INVALID_DESTINATION_HINT" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type RectangularSelectionScreenRecordingError = {
    code: RectangularSelectionScreenRecordingErrorCode;
    message: string;
    boundary: RectangularSelectionScreenRecordingBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type RectangularSelectionScreenRecordingAuditEvent = {
    type: string;
    toolId: "computeruse.rectangularSelectionScreenRecording";
    invocationId: string;
    dryRun: boolean;
    displayId?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenRecordingOutput = {
    kind: "agentCore.basicTool.computeruse.rectangularSelectionScreenRecording";
    target: RectangularSelectionScreenRecordingTarget;
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: true;
    permissionsRequired: readonly ("screen:record" | "display:capture" | "ui:selection" | "recording:session" | "microphone:record")[];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.startRecording";
        operation: "computeruse.rectangularSelectionScreenRecording.start";
        runtimeOwnsScreenAccess: true;
        runtimeOwnsRegionSelection: true;
        runtimeOwnsRecordingSession: true;
        runtimeOwnsArtifactStorage: true;
        baseToolOwnsTapStrategy: false;
    };
    recordingEnvelope: {
        resource: "screen";
        target: "region";
        started: boolean;
        metadataOnly: boolean;
        recordingId?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenRecordingResult = {
    ok: true;
    toolId: "computeruse.rectangularSelectionScreenRecording";
    output: RectangularSelectionScreenRecordingOutput;
    audit: readonly RectangularSelectionScreenRecordingAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.rectangularSelectionScreenRecording";
    error: RectangularSelectionScreenRecordingError;
    audit: readonly RectangularSelectionScreenRecordingAuditEvent[];
    events: readonly string[];
};
export declare const rectangularSelectionScreenRecordingDescriptor: {
    readonly toolId: "computeruse.rectangularSelectionScreenRecording";
    readonly capability: "start-rectangular-selection-screen-recording";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.screenRecording";
    readonly defaultDryRun: true;
    readonly defaultDisplayId: "primary-display";
    readonly defaultCoordinateSpace: "screen";
    readonly defaultMaxDurationMs: 60000;
    readonly maxDurationMs: 3600000;
    readonly defaultFrameRate: 15;
    readonly maxFrameRate: 60;
    readonly maxAreaPx: 100000000;
    readonly defaultOutputFormat: "video/webm";
    readonly allowedDestinationSchemes: readonly ["artifact://", "session://", "runtime://", "memory://"];
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.startRecording";
    readonly unsafeSideEffects: true;
};
export declare function executeRectangularSelectionScreenRecording(request?: unknown): Promise<RectangularSelectionScreenRecordingResult>;
export declare function planRectangularSelectionScreenRecording(request?: unknown): Promise<RectangularSelectionScreenRecordingResult>;
