// Generated from Fairmint/OpenCapTable/OCF/StockPlan.daml
/* eslint-disable @typescript-eslint/camelcase */
/* eslint-disable @typescript-eslint/no-namespace */
/* eslint-disable @typescript-eslint/no-use-before-define */
import * as jtv from '@mojotech/json-type-validation';
import * as damlTypes from '@daml/types';
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
import * as damlLedger from '@daml/ledger';

import * as pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69 from '../../../../DA/Internal/Template';

import * as Fairmint_OpenCapTable_Types from '../../../../Fairmint/OpenCapTable/Types/module';

export declare type OcfStockPlanCancellationBehaviorType =
  | 'OcfPlanCancelDefinedPerPlanSecurity'
  | 'OcfPlanCancelHoldAsCapitalStock'
  | 'OcfPlanCancelRetire'
  | 'OcfPlanCancelReturnToPool'
;

export declare const OcfStockPlanCancellationBehaviorType:
  damlTypes.Serializable<OcfStockPlanCancellationBehaviorType> & {
  }
& { readonly keys: OcfStockPlanCancellationBehaviorType[] } & { readonly [e in OcfStockPlanCancellationBehaviorType]: e }
;


export declare type StockPlanOcfData = {
  id: string;
  initial_shares_reserved: damlTypes.Numeric;
  plan_name: string;
  comments: string[];
  stock_class_ids: string[];
  board_approval_date: damlTypes.Optional<damlTypes.Time>;
  default_cancellation_behavior: damlTypes.Optional<OcfStockPlanCancellationBehaviorType>;
  stockholder_approval_date: damlTypes.Optional<damlTypes.Time>;
};

export declare const StockPlanOcfData:
  damlTypes.Serializable<StockPlanOcfData> & {
  }
;


export declare type StockPlan = {
  context: Fairmint_OpenCapTable_Types.Context;
  plan_data: StockPlanOcfData;
};

export declare interface StockPlanInterface {
  Archive: damlTypes.Choice<StockPlan, pkg9e70a8b3510d617f8a136213f33d6a903a10ca0eeec76bb06ba55d1ed9680f69.DA.Internal.Template.Archive, {}, undefined> & damlTypes.ChoiceFrom<damlTypes.Template<StockPlan, undefined>>;
}
export declare const StockPlan:
  damlTypes.Template<StockPlan, undefined, '#OpenCapTable-v25:Fairmint.OpenCapTable.OCF.StockPlan:StockPlan'> &
  damlTypes.ToInterface<StockPlan, never> &
  StockPlanInterface;

export declare namespace StockPlan {
  export type CreateEvent = damlLedger.CreateEvent<StockPlan, undefined, typeof StockPlan.templateId>
  export type ArchiveEvent = damlLedger.ArchiveEvent<StockPlan, typeof StockPlan.templateId>
  export type Event = damlLedger.Event<StockPlan, undefined, typeof StockPlan.templateId>
  export type QueryResult = damlLedger.QueryResult<StockPlan, undefined, typeof StockPlan.templateId>
}


