import { AfterContentInit, QueryList } from '@angular/core'; import { ControlValueAccessor, NgControl } from '@angular/forms'; import * as i0 from "@angular/core"; export declare class SampleSizeCalculator implements ControlValueAccessor, AfterContentInit { controlsArray: QueryList; onChange: any; onTouched: any; ngAfterContentInit(): void; /** * Retrieves the control names needed for extraction based on available fields. * * @param {Array} fields - The array of field objects. * @returns {Array} - An array of unique control names from the fields. */ getRequiredControlNames(fields: any): unknown[]; /** * Extracts the values of the specified controls from the fields array. * * @param {Array} fields - The array of field objects. * @param {Array} controlNames - The list of control names to extract values for. * @returns {Object} - An object containing the extracted control values. */ extractControlValues(fields: any, controlNames: any): any; /** * This function calculates the sample size required for an experiment. It uses the formula: * n = (Z^2 * p * (1 - p)) / E^2 * where: * - n is the sample size * - Z is the z-score for the desired confidence interval * - p is the proportion of the population that has the attribute being measured * - E is the desired margin of error * If the population size is known and less than 1,000,000, the formula is adjusted to: * n = (Z^2 * p * (1 - p)) / (E^2 / (N / (N - 1) + 1)) * where N is the population size * * @param {*} params * @returns {number} sampleSize * @description Calculate the sample size required for an experiment * @example calculateSampleSize({ confidenceLevel: 0.95, populationSize: 1000, resultMaxValue: 0.6, resultMinValue: 0.4, targetMarginOfError: 0.05 }); // 384 */ calculateSampleSize(params: any): number; /** * This function determines the proportion to use for the sample size calculation. It chooses the value that is further from 0.5 * @param {*} minValue The minimum value of the proportion range (0-1) * @param {*} maxValue The maximum value of the proportion range (0-1) * @returns The proportion to use for the sample size calculation */ determineProportionForCalculation(minValue?: number, maxValue?: number): number; writeValue(value: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }