import type { Logger } from '@kici-dev/shared';
import type { BackendRegistry } from './backend-registry.js';
/**
 * Manages scope discovery and sync for all registered secret backends.
 *
 * On each sync cycle, lists scopes from each backend's store, applies
 * the scope filter, and updates the registry with the discovered count.
 */
export declare class BackendSyncManager {
    private readonly registry;
    private readonly logger;
    private readonly intervalHandles;
    constructor(registry: BackendRegistry, logger: Logger);
    /**
     * Sync a single backend by name. Discovers scopes via listing,
     * applies the scope filter, and updates the registry.
     */
    syncBackend(name: string): Promise<{
        scopeCount: number;
        error?: string;
    }>;
    /**
     * Sync all enabled backends in parallel via Promise.allSettled.
     */
    syncAllBackends(): Promise<Array<{
        name: string;
        scopeCount: number;
        error?: string;
    }>>;
    /**
     * Start periodic sync for each enabled backend at its configured interval.
     */
    startPeriodicSync(): void;
    private startPeriodicSyncAsync;
    /**
     * Stop all periodic sync intervals.
     */
    stopPeriodicSync(): void;
}
//# sourceMappingURL=backend-sync.d.ts.map