export type WindowScreenshotBoundary = "input" | "contract" | "governance" | "scope" | "provider";
export type WindowScreenshotGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type WindowScreenshotContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: WindowScreenshotGate;
    contract?: WindowScreenshotGate;
    governance?: WindowScreenshotGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type WindowScreenshotTarget = {
    displayId: string;
    windowRef: string;
    titleHint?: string;
    outputFormat: string;
    includeWindowFrame: boolean;
};
export type WindowScreenshotProviderRequest = {
    operation: "computeruse.windowScreenshot.capture";
    target: WindowScreenshotTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type WindowScreenshotProviderResult = {
    artifactId: string;
    mimeType: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type WindowScreenshotProvider = (request: WindowScreenshotProviderRequest) => Promise<WindowScreenshotProviderResult> | WindowScreenshotProviderResult;
export type WindowScreenshotRequest = {
    target?: unknown;
    context?: unknown;
    displayId?: unknown;
    windowRef?: unknown;
    titleHint?: unknown;
    includeWindowFrame?: unknown;
    purpose?: unknown;
    outputFormat?: unknown;
    metadata?: unknown;
    provider?: WindowScreenshotProvider;
};
export type WindowScreenshotErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_PURPOSE" | "MISSING_WINDOW_REF" | "INVALID_DISPLAY_ID" | "INVALID_WINDOW_REF" | "INVALID_TITLE_HINT" | "INVALID_OUTPUT_FORMAT" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type WindowScreenshotError = {
    code: WindowScreenshotErrorCode;
    message: string;
    boundary: WindowScreenshotBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type WindowScreenshotAuditEvent = {
    type: string;
    toolId: "computeruse.windowScreenshot";
    invocationId: string;
    dryRun: boolean;
    displayId?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type WindowScreenshotOutput = {
    kind: "agentCore.basicTool.computeruse.windowScreenshot";
    target: WindowScreenshotTarget;
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: false;
    permissionsRequired: readonly ["screen:read", "display:capture"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.captureScreenshot";
        operation: "computeruse.windowScreenshot.capture";
        runtimeOwnsScreenAccess: true;
        runtimeOwnsArtifactStorage: true;
        baseToolOwnsTapStrategy: false;
    };
    captureEnvelope: {
        resource: "screen";
        target: "window";
        captured: boolean;
        metadataOnly: boolean;
        artifactId?: string;
        mimeType?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type WindowScreenshotResult = {
    ok: true;
    toolId: "computeruse.windowScreenshot";
    output: WindowScreenshotOutput;
    audit: readonly WindowScreenshotAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.windowScreenshot";
    error: WindowScreenshotError;
    audit: readonly WindowScreenshotAuditEvent[];
    events: readonly string[];
};
export declare const windowScreenshotDescriptor: {
    readonly toolId: "computeruse.windowScreenshot";
    readonly capability: "capture-window-screenshot";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.screenshot";
    readonly defaultDryRun: true;
    readonly defaultDisplayId: "primary-display";
    readonly defaultOutputFormat: "image/png";
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.captureScreenshot";
    readonly permissionsRequired: readonly ["screen:read", "display:capture"];
    readonly unsafeSideEffects: false;
};
export declare function executeWindowScreenshot(request?: unknown): Promise<WindowScreenshotResult>;
export declare function planWindowScreenshot(request?: unknown): Promise<WindowScreenshotResult>;
