import EventEmitter from 'events';
import type { RepositoryInterface } from 'unleash-client/lib/repository/index.js';
import type { Segment } from 'unleash-client/lib/strategy/strategy.js';
import type { EnhancedFeatureInterface, FeatureInterface } from 'unleash-client/lib/feature.js';
import type { IApiUser } from '../../types/api-user.js';
import type { IUnleashConfig } from '../../types/index.js';
import type { GlobalFrontendApiCache } from './global-frontend-api-cache.js';
type Config = Pick<IUnleashConfig, 'getLogger'>;
export declare class FrontendApiRepository extends EventEmitter implements RepositoryInterface {
    private readonly token;
    private globalFrontendApiCache;
    private running;
    constructor(_config: Config, globalFrontendApiCache: GlobalFrontendApiCache, token: IApiUser);
    getTogglesWithSegmentData(): EnhancedFeatureInterface[];
    getSegment(id: number): Segment | undefined;
    getToggle(name: string): FeatureInterface;
    getToggles(): FeatureInterface[];
    start(): Promise<void>;
    stop(): void;
}
export {};
//# sourceMappingURL=frontend-api-repository.d.ts.map