/**
 * @license
 * Copyright 2025 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { type PolicyEngineConfig, type ApprovalMode, type PolicyEngine, type MessageBus } from 'sixth-cli-core';
import { type Settings } from './settings.js';
export declare function createPolicyEngineConfig(settings: Settings, approvalMode: ApprovalMode): Promise<PolicyEngineConfig>;
export declare function createPolicyUpdater(policyEngine: PolicyEngine, messageBus: MessageBus): void;
/**
 * Gets and clears any policy errors that were stored during config loading.
 * This should be called once the UI is ready to display errors.
 *
 * @returns Array of formatted error messages, or empty array if no errors
 */
export declare function getPolicyErrorsForUI(): string[];
