export type KeyboardInputEmulationBoundary = "input" | "contract" | "governance" | "scope" | "resource" | "provider";
export type KeyboardInputEmulationGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type KeyboardInputMode = "text" | "paste";
export type KeyboardInputEmulationContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: KeyboardInputEmulationGate;
    contract?: KeyboardInputEmulationGate;
    governance?: KeyboardInputEmulationGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardInputEmulationTarget = {
    text: string;
    inputMode: KeyboardInputMode;
    targetHint?: string;
    maxTextLength: number;
};
export type KeyboardInputEmulationProviderRequest = {
    operation: "computeruse.keyboardInputEmulation.type";
    target: KeyboardInputEmulationTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type KeyboardInputEmulationProviderResult = {
    actionId: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardInputEmulationProvider = (request: KeyboardInputEmulationProviderRequest) => Promise<KeyboardInputEmulationProviderResult> | KeyboardInputEmulationProviderResult;
export type KeyboardInputEmulationRequest = {
    target?: unknown;
    context?: unknown;
    text?: unknown;
    inputMode?: unknown;
    targetHint?: unknown;
    maxTextLength?: unknown;
    purpose?: unknown;
    metadata?: unknown;
    provider?: KeyboardInputEmulationProvider;
};
export type KeyboardInputEmulationErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_PURPOSE" | "MISSING_TEXT" | "INVALID_TEXT" | "INVALID_INPUT_MODE" | "INVALID_TARGET_HINT" | "INVALID_TEXT_LIMIT" | "TEXT_LIMIT_EXCEEDED" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type KeyboardInputEmulationError = {
    code: KeyboardInputEmulationErrorCode;
    message: string;
    boundary: KeyboardInputEmulationBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type KeyboardInputEmulationAuditEvent = {
    type: string;
    toolId: "computeruse.keyboardInputEmulation";
    invocationId: string;
    dryRun: boolean;
    targetHint?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type KeyboardInputEmulationOutput = {
    kind: "agentCore.basicTool.computeruse.keyboardInputEmulation";
    target: Omit<KeyboardInputEmulationTarget, "text"> & {
        textCharacters: number;
        textBytes: number;
    };
    purpose: string;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: true;
    permissionsRequired: readonly ["keyboard:write", "ui:focus"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.keyboardAction";
        operation: "computeruse.keyboardInputEmulation.type";
        runtimeOwnsKeyboardEvents: true;
        runtimeOwnsFocusBoundary: true;
        baseToolOwnsTapStrategy: false;
    };
    actionEnvelope: {
        resource: "keyboard";
        action: "type";
        emitted: boolean;
        metadataOnly: boolean;
        actionId?: string;
        inputMode: KeyboardInputMode;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardInputEmulationResult = {
    ok: true;
    toolId: "computeruse.keyboardInputEmulation";
    output: KeyboardInputEmulationOutput;
    audit: readonly KeyboardInputEmulationAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.keyboardInputEmulation";
    error: KeyboardInputEmulationError;
    audit: readonly KeyboardInputEmulationAuditEvent[];
    events: readonly string[];
};
export declare const keyboardInputEmulationDescriptor: {
    readonly toolId: "computeruse.keyboardInputEmulation";
    readonly capability: "keyboard-input-emulation";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.keyboardEmulation";
    readonly defaultDryRun: true;
    readonly defaultInputMode: "text";
    readonly defaultMaxTextLength: 4096;
    readonly maxTextLengthLimit: 16384;
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.keyboardAction";
    readonly permissionsRequired: readonly ["keyboard:write", "ui:focus"];
    readonly unsafeSideEffects: true;
};
export declare function executeKeyboardInputEmulation(request?: unknown): Promise<KeyboardInputEmulationResult>;
export declare function planKeyboardInputEmulation(request?: unknown): Promise<KeyboardInputEmulationResult>;
