/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import type { HistoryItemWithoutId } from '../ui/types.js';
/**
 * Global holder for the OAuth UI callback (addItem).
 * This allows OAuth providers to be created before the UI renders,
 * but still display OAuth URLs once the UI is available.
 */
declare class GlobalOAuthUI {
    private addItemCallback;
    /**
     * Set the addItem callback when UI is available
     */
    setAddItem(callback: (itemData: Omit<HistoryItemWithoutId, 'id'>, baseTimestamp: number) => number): void;
    /**
     * Clear the addItem callback when UI is disposed
     */
    clearAddItem(): void;
    /**
     * Get the current addItem callback, or undefined if UI not available
     */
    getAddItem(): ((itemData: Omit<HistoryItemWithoutId, 'id'>, baseTimestamp: number) => number) | undefined;
    /**
     * Call addItem if available, otherwise no-op
     */
    callAddItem(itemData: Omit<HistoryItemWithoutId, 'id'>, baseTimestamp: number): number | undefined;
}
export declare const globalOAuthUI: GlobalOAuthUI;
export {};
