text: /*
   * Backpack - Skyscanner's Design System
   *
   * Copyright 2018-2021 Skyscanner Ltd
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *   http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  #import <FSCalendar/FSCalendar.h>
  
  typedef NS_ENUM(NSUInteger, SelectionType) {
      SelectionTypeNone,
      SelectionTypeSingle,
      SelectionTypeLeadingBorder,
      SelectionTypeMiddle,
      SelectionTypeTrailingBorder,
      SelectionTypeSameDay
  };
  
  typedef NS_ENUM(NSUInteger, RowType) { RowTypeMiddle, RowTypeStart, RowTypeEnd, RowTypeBoth };
  
  @interface BPKCalendarCell : FSCalendarCell
  
  @property(nonatomic, assign) SelectionType selectionType;
  @property(nonatomic, assign) RowType rowType;
  
  /**
   * Applies the given data to the cell.
   *
   * @param data The additional data to be used in configuring the cell.
   */
  - (void)configureWithData:(id)data;
  
  /**
   * Returns the cell's default accessibility label string for the date. This can be overridden so that different cell types provide different format strings.
   *
   * @param date The date to include in the resulting string.
   * @param formatter The NSDateFormatter to be used for formatting the date. 
   */
  - (NSString *)defaultAccessibilityLabelForDate:(NSDate *)date formatter:(NSDateFormatter *)formatter;
  
  @end
  