import type { sheets_v4 } from '@googleapis/sheets'; import type { BooleanCondition } from '../entities/BooleanCondition.js'; import type { ConditionalFormatRule } from '../entities/ConditionalFormatRule.js'; import type { ConditionValue } from '../entities/ConditionValue.js'; import type { DataValidationRule } from '../entities/DataValidationRule.js'; import type { Editors } from '../entities/Editors.js'; import type { GridRange } from '../entities/GridRange.js'; import type { ProtectedRange } from '../entities/ProtectedRange.js'; /** * Rule-noun carriers and projections: the reactive layer's entities * (conditions, conditional format rules, data validation, protected ranges) * crossing the Google boundary, with `forGoogle` at each level (see * optionality.ts) and the documented oneofs enforced here, once, like * formats.ts's `toColorStyle`. */ /** * Carry a ConditionValue across the Google boundary. Enforces the documented * oneof: a value is either a literal or a relative date, never both, never * neither. */ export declare function toConditionValue(value: ConditionValue): sheets_v4.Schema$ConditionValue; /** Carry a BooleanCondition across the Google boundary. */ export declare function toBooleanCondition(condition: BooleanCondition): sheets_v4.Schema$BooleanCondition; /** * Carry a ConditionalFormatRule across the Google boundary. Enforces the * documented oneof: a rule is either a boolean rule or a gradient rule. */ export declare function toConditionalFormatRule(rule: ConditionalFormatRule): sheets_v4.Schema$ConditionalFormatRule; /** Carry a DataValidationRule across the Google boundary. */ export declare function toDataValidationRule(rule: DataValidationRule): sheets_v4.Schema$DataValidationRule; /** Carry an Editors across the Google boundary. */ export declare function toEditors(editors: Editors): sheets_v4.Schema$Editors; /** Project a REST grid range, cleaning nulls to undefined. */ export declare function projectGridRange(data: sheets_v4.Schema$GridRange): GridRange; /** Project a REST protected range, cleaning nulls to undefined. */ export declare function projectProtectedRange(data: sheets_v4.Schema$ProtectedRange): ProtectedRange; //# sourceMappingURL=rules.d.ts.map