export type KeyboardSubmitInputBoundary = "input" | "contract" | "governance" | "scope" | "resource" | "provider";
export type KeyboardSubmitInputGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type KeyboardSubmitKey = "Enter" | "NumpadEnter";
export type KeyboardSubmitInputContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: KeyboardSubmitInputGate;
    contract?: KeyboardSubmitInputGate;
    governance?: KeyboardSubmitInputGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardSubmitInputTarget = {
    submitKey: KeyboardSubmitKey;
    targetHint?: string;
    repeat: number;
};
export type KeyboardSubmitInputProviderRequest = {
    operation: "computeruse.keyboardSubmitInput.submit";
    target: KeyboardSubmitInputTarget;
    actionIndex: number;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
    purpose: string;
};
export type KeyboardSubmitInputProviderResult = {
    actionId: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardSubmitInputProvider = (request: KeyboardSubmitInputProviderRequest) => Promise<KeyboardSubmitInputProviderResult> | KeyboardSubmitInputProviderResult;
export type KeyboardSubmitInputRequest = {
    target?: unknown;
    context?: unknown;
    submitKey?: unknown;
    targetHint?: unknown;
    repeat?: unknown;
    purpose?: unknown;
    metadata?: unknown;
    provider?: KeyboardSubmitInputProvider;
};
export type KeyboardSubmitInputErrorCode = "INVALID_REQUEST" | "INVALID_TARGET" | "INVALID_CONTEXT" | "MISSING_RUNTIME_ID" | "MISSING_PURPOSE" | "INVALID_SUBMIT_KEY" | "INVALID_TARGET_HINT" | "INVALID_REPEAT" | "SCOPE_DENIED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type KeyboardSubmitInputError = {
    code: KeyboardSubmitInputErrorCode;
    message: string;
    boundary: KeyboardSubmitInputBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type KeyboardSubmitInputAuditEvent = {
    type: string;
    toolId: "computeruse.keyboardSubmitInput";
    invocationId: string;
    dryRun: boolean;
    targetHint?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type KeyboardSubmitInputOutput = {
    kind: "agentCore.basicTool.computeruse.keyboardSubmitInput";
    target: KeyboardSubmitInputTarget;
    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.keyboardSubmitInput.submit";
        runtimeOwnsKeyboardEvents: true;
        runtimeOwnsFocusBoundary: true;
        baseToolOwnsTapStrategy: false;
    };
    actionEnvelope: {
        resource: "keyboard";
        action: "submit";
        emitted: boolean;
        metadataOnly: boolean;
        submitKey: KeyboardSubmitKey;
        repeat: number;
        actionIds?: readonly string[];
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type KeyboardSubmitInputResult = {
    ok: true;
    toolId: "computeruse.keyboardSubmitInput";
    output: KeyboardSubmitInputOutput;
    audit: readonly KeyboardSubmitInputAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.keyboardSubmitInput";
    error: KeyboardSubmitInputError;
    audit: readonly KeyboardSubmitInputAuditEvent[];
    events: readonly string[];
};
export declare const keyboardSubmitInputDescriptor: {
    readonly toolId: "computeruse.keyboardSubmitInput";
    readonly capability: "keyboard-submit-input";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.keyboardEmulation";
    readonly defaultDryRun: true;
    readonly defaultSubmitKey: "Enter";
    readonly maxRepeat: 5;
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.keyboardAction";
    readonly permissionsRequired: readonly ["keyboard:write", "ui:focus"];
    readonly unsafeSideEffects: true;
};
export declare function executeKeyboardSubmitInput(request?: unknown): Promise<KeyboardSubmitInputResult>;
export declare function planKeyboardSubmitInput(request?: unknown): Promise<KeyboardSubmitInputResult>;
