import type { SqlResultColumn } from '@cloudbeaver/core-sdk' ; import type { IResultSetValue } from '@cloudbeaver/plugin-data-viewer' ; export function isStringifiedBoolean ( value ) { return [ 'false' , 'true' ] . includes ( value . toLowerCase ( ) ) ; } export function isBooleanValuePresentationAvailable ( cellValue , column ) { return column ?. dataKind ?. toLowerCase ( ) === 'boolean' && ( typeof cellValue === 'boolean' || cellValue === null || ( typeof cellValue === 'string' && isStringifiedBoolean ( cellValue ) ) ) ; }