export type MicrophonePermissionRequestBoundary = "input" | "contract" | "governance" | "scope" | "resource" | "provider";
export type MicrophonePermissionRequestGate = {
    accepted?: boolean;
    allowed?: boolean;
    reason?: string;
};
export type MicrophonePermissionRequestMode = "session" | "single-capture" | "recording";
export type MicrophonePermissionRequestContext = {
    runtimeId?: string;
    sessionId?: string;
    invocationId?: string;
    dryRun?: boolean;
    guard?: MicrophonePermissionRequestGate;
    contract?: MicrophonePermissionRequestGate;
    governance?: MicrophonePermissionRequestGate;
    requestedScopes?: readonly string[];
    allowedScopes?: readonly string[];
    auditMetadata?: Readonly<Record<string, unknown>>;
};
export type MicrophonePermissionRequestTarget = {
    targetApplication: string;
    purpose: string;
    deviceId?: string;
    mode: MicrophonePermissionRequestMode;
    requestedDurationMs: number;
};
export type MicrophonePermissionProviderRequest = {
    operation: "computeruse.microphonePermissionRequest.request";
    target: MicrophonePermissionRequestTarget;
    context: {
        runtimeId?: string;
        sessionId?: string;
        invocationId?: string;
        auditMetadata?: Readonly<Record<string, unknown>>;
    };
};
export type MicrophonePermissionProviderResult = {
    granted: boolean;
    leaseId?: string;
    metadata?: Readonly<Record<string, unknown>>;
};
export type MicrophonePermissionProvider = (request: MicrophonePermissionProviderRequest) => Promise<MicrophonePermissionProviderResult> | MicrophonePermissionProviderResult;
export type MicrophonePermissionRequestInput = {
    target?: unknown;
    context?: unknown;
    targetApplication?: unknown;
    purpose?: unknown;
    deviceId?: unknown;
    mode?: unknown;
    requestedDurationMs?: unknown;
    maxDurationMs?: unknown;
    metadata?: unknown;
    provider?: MicrophonePermissionProvider;
};
export type MicrophonePermissionRequestErrorCode = "INVALID_REQUEST" | "INVALID_CONTEXT" | "INVALID_TARGET" | "MISSING_RUNTIME_ID" | "MISSING_TARGET_APPLICATION" | "MISSING_PURPOSE" | "INVALID_DEVICE_ID" | "INVALID_MODE" | "INVALID_DURATION" | "DURATION_LIMIT_EXCEEDED" | "CONTRACT_REJECTED" | "GOVERNANCE_REJECTED" | "SCOPE_DENIED" | "PROVIDER_UNAVAILABLE" | "PROVIDER_FAILURE";
export type MicrophonePermissionRequestError = {
    code: MicrophonePermissionRequestErrorCode;
    message: string;
    boundary: MicrophonePermissionRequestBoundary;
    publicSafe: true;
    safeForRuntimeInspection: true;
    internalDetailExposed: false;
};
export type MicrophonePermissionRequestAuditEvent = {
    type: string;
    toolId: "computeruse.microphonePermissionRequest";
    invocationId: string;
    dryRun: boolean;
    deviceId?: string;
    metadata: Readonly<Record<string, unknown>>;
};
export type MicrophonePermissionRequestOutput = {
    kind: "agentCore.basicTool.computeruse.microphonePermissionRequest";
    target: MicrophonePermissionRequestTarget;
    dispatch: "dry-run" | "runtime-computeruse";
    dryRun: boolean;
    providerCalled: boolean;
    executionBlocked: boolean;
    unsafeSideEffects: true;
    permissionsRequired: readonly ["microphone:permission-request"];
    requiresTapApproval: true;
    acceptedScopes: readonly string[];
    runtimeEntry: {
        port: "BaseToolExecutorPort.computeruse.requestPermission";
        operation: "computeruse.microphonePermissionRequest.request";
        runtimeOwnsPermissionPrompt: true;
        runtimeOwnsDeviceLease: true;
        baseToolOwnsTapStrategy: false;
    };
    permissionEnvelope: {
        resource: "microphone";
        requested: boolean;
        granted: boolean;
        metadataOnly: boolean;
        leaseId?: string;
    };
    providerMetadata?: Readonly<Record<string, unknown>>;
};
export type MicrophonePermissionRequestResult = {
    ok: true;
    toolId: "computeruse.microphonePermissionRequest";
    output: MicrophonePermissionRequestOutput;
    audit: readonly MicrophonePermissionRequestAuditEvent[];
    events: readonly string[];
} | {
    ok: false;
    toolId: "computeruse.microphonePermissionRequest";
    error: MicrophonePermissionRequestError;
    audit: readonly MicrophonePermissionRequestAuditEvent[];
    events: readonly string[];
};
export declare const microphonePermissionRequestDescriptor: {
    readonly toolId: "computeruse.microphonePermissionRequest";
    readonly capability: "microphone-permission-request";
    readonly route: "agent_executionEngine.basic_toolLayer.baseTools.computeruseBase.microphoneAccess";
    readonly defaultDryRun: true;
    readonly defaultMode: "session";
    readonly defaultRequestedDurationMs: 60000;
    readonly defaultMaxDurationMs: number;
    readonly tapOwnsApproval: true;
    readonly runtimeEntry: "BaseToolExecutorPort.computeruse.requestPermission";
    readonly permissionsRequired: readonly ["microphone:permission-request"];
    readonly unsafeSideEffects: true;
};
export declare function executeMicrophonePermissionRequest(request?: unknown): Promise<MicrophonePermissionRequestResult>;
export declare function planMicrophonePermissionRequest(request?: unknown): Promise<MicrophonePermissionRequestResult>;
