import { DataProvider, DataProviderRecord } from '../Provider'; /** * Provider for boolean fields that returns Yes/No options. * The labels are translatable and support clearing when the field is optional. */ export default class BooleanProvider implements DataProvider { /** * Retrieves a single item by its value or its label. * @param value The value of the item to retrieve. * @returns The item that matches the given value, or undefined if not found. */ get(value: string): DataProviderRecord; /** * Retrieves a list of suggestions based on an input string for a typeahead component. * @param search The input string to use for generating suggestions. * @returns An array of suggestions that match the input. */ find(search: string): DataProviderRecord[]; }