import { EventEmitter } from '@angular/core'; import * as i0 from "@angular/core"; /** * Legacy toggle-change payload kept for back-compat with consumers that haven't migrated * to `restoreMockChange` yet. `key` identifies which row was toggled; `value` is the new * checked state of that row. New code should listen to `restoreMockChange` instead. */ export interface ApiMockingCardToggleChange { key: 'captureApiResponses' | 'renewApiResponses'; value: boolean; } /** * Dual-mode card summarising the API mocking configuration of a test case. * * The card surfaces TWO independent flags — `restoreMock` (the "Use mock API responses" row) * and `storeMock` (the "Renew and store API responses" row). Both can be off simultaneously * (no mocking on the next run); turning either one on forces the other off (they're mutually * exclusive in the on-state). Both can never be on at the same time. * * In read-only mode each row shows On/Off derived from its own flag. In edit mode each row * renders a toggle; the card emits `restoreMockChange` and `storeMockChange` whenever a value * actually changes so the parent can persist them. */ export declare class ApiMockingCardComponent { title: string; statusLabel: string; captureLabel: string; captureHint: string; renewLabel: string; renewHint: string; /** "Use mock API responses" row state. Mutually exclusive with `storeMock` when true. */ restoreMock: boolean; /** "Renew and store API responses" row state. Mutually exclusive with `restoreMock` when true. */ storeMock: boolean; mockedApisCount: number; totalApisCount: number; progressPercent: number; summaryText?: string; percentText?: string; configureButtonLabel: string; editing: boolean; /** * Controls whether the "Mocked X of Y / progress bar / percent" block is shown. * Hidden when the test case has no captured mock summary yet (and always hidden in * edit mode regardless of this flag). */ showProgress: boolean; /** Hint shown in read-only mode when no mock data exists yet (`showProgress` is false). */ noDataHint: string; configure: EventEmitter; /** Emitted whenever `restoreMock` changes (Use-mock row toggled). */ restoreMockChange: EventEmitter; /** Emitted whenever `storeMock` changes (Renew-and-store row toggled). */ storeMockChange: EventEmitter; get captureEnabled(): boolean; get renewEnabled(): boolean; get captureValueText(): string; get renewValueText(): string; get computedSummaryText(): string; get computedPercentText(): string; get progressWidth(): string; onConfigureClick(): void; /** * "Use mock API responses" toggle. Turning it on forces `storeMock` off (mutual exclusivity); * turning it off leaves the other row alone. */ onCaptureToggle(value: boolean): void; /** * "Renew and store API responses" toggle. Turning it on forces `restoreMock` off; turning * it off leaves the other row alone. */ onRenewToggle(value: boolean): void; private setRestoreMock; private setStoreMock; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }