export type RectangularSelectionScreenshotBoundary = "input" | "contract" | "governance" | "scope" | "resource" | "provider";
export type RectangularSelectionScreenshotGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type RectangularSelectionScreenshotContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: RectangularSelectionScreenshotGate;
    contract?: RectangularSelectionScreenshotGate;
    governance?: RectangularSelectionScreenshotGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenshotRect = {
    x: number;
    y: number;
    width: number;
    height: number;
    coordinateSpace: "screen" | "window" | "normalized";
};
export type RectangularSelectionScreenshotTarget = {
    displayId: string;
    rect: RectangularSelectionScreenshotRect;
    outputFormat: string;
};
export type RectangularSelectionScreenshotProviderRequest = {
    operation: "computeruse.rectangularSelectionScreenshot.capture";
    target: RectangularSelectionScreenshotTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type RectangularSelectionScreenshotProviderResult = {
    artifactId: string;
    mimeType: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenshotProvider = (request: RectangularSelectionScreenshotProviderRequest) => Promise<RectangularSelectionScreenshotProviderResult> | RectangularSelectionScreenshotProviderResult;
export type RectangularSelectionScreenshotRequest = {
    target?: unknown;
    context?: unknown;
    displayId?: unknown;
    rect?: unknown;
    region?: unknown;
    coordinateSpace?: unknown;
    purpose?: unknown;
    outputFormat?: unknown;
    metadata?: unknown;
    provider?: RectangularSelectionScreenshotProvider;
};
export type RectangularSelectionScreenshotErrorCode = "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_OUTPUT_FORMAT" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type RectangularSelectionScreenshotError = {
    code: RectangularSelectionScreenshotErrorCode;
    message: string;
    boundary: RectangularSelectionScreenshotBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type RectangularSelectionScreenshotAuditEvent = {
    type: string;
    toolId: "computeruse.rectangularSelectionScreenshot";
    invocationId: string;
    dryRun: boolean;
    displayId?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenshotOutput = {
    kind: "agentCore.basicTool.computeruse.rectangularSelectionScreenshot";
    target: RectangularSelectionScreenshotTarget;
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: false;
    permissionsRequired: readonly ["screen:read", "display:capture", "ui:selection"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.captureScreenshot";
        operation: "computeruse.rectangularSelectionScreenshot.capture";
        runtimeOwnsScreenAccess: true;
        runtimeOwnsArtifactStorage: true;
        baseToolOwnsTapStrategy: false;
    };
    captureEnvelope: {
        resource: "screen";
        target: "region";
        captured: boolean;
        metadataOnly: boolean;
        artifactId?: string;
        mimeType?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type RectangularSelectionScreenshotResult = {
    ok: true;
    toolId: "computeruse.rectangularSelectionScreenshot";
    output: RectangularSelectionScreenshotOutput;
    audit: readonly RectangularSelectionScreenshotAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.rectangularSelectionScreenshot";
    error: RectangularSelectionScreenshotError;
    audit: readonly RectangularSelectionScreenshotAuditEvent[];
    events: readonly string[];
};
export declare const rectangularSelectionScreenshotDescriptor: {
    readonly toolId: "computeruse.rectangularSelectionScreenshot";
    readonly capability: "capture-rectangular-selection-screenshot";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.screenshot";
    readonly defaultDryRun: true;
    readonly defaultDisplayId: "primary-display";
    readonly defaultOutputFormat: "image/png";
    readonly defaultCoordinateSpace: "screen";
    readonly maxAreaPx: 100000000;
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.captureScreenshot";
    readonly permissionsRequired: readonly ["screen:read", "display:capture", "ui:selection"];
    readonly unsafeSideEffects: false;
};
export declare function executeRectangularSelectionScreenshot(request?: unknown): Promise<RectangularSelectionScreenshotResult>;
export declare function planRectangularSelectionScreenshot(request?: unknown): Promise<RectangularSelectionScreenshotResult>;
