import { TemporalTimezone } from "../../../base-ui-copy/types/index.mjs"; import { SchedulerProcessedEvent, SchedulerEventId, SchedulerOccurrencePlaceholder, SchedulerResource, SchedulerEventModelStructure, SchedulerResourceModelStructure, SchedulerEvent, SchedulerEventCreationProperties, SchedulerEventUpdatedProperties } from "../../../models/index.mjs"; import { Adapter } from "../../../use-adapter/useAdapter.types.mjs"; import { SchedulerParameters, SchedulerState } from "./SchedulerStore.types.mjs"; import { SchedulerRecurringEventsPluginInterface } from "../../plugins/SchedulerRecurringEventsPlugin.types.mjs"; /** * Determines if the occurrence placeholder has changed in a meaningful way that requires updating the store. */ export declare function shouldUpdateOccurrencePlaceholder(adapter: Adapter, previous: SchedulerOccurrencePlaceholder | null, next: SchedulerOccurrencePlaceholder | null): boolean; export declare const DEFAULT_EVENT_MODEL_STRUCTURE: SchedulerEventModelStructure; /** * Converts an event model to a processed event using the provided model structure. */ export declare function getProcessedEventFromModel(model: TEvent, adapter: Adapter, eventModelStructure: SchedulerEventModelStructure | undefined, displayTimezone: TemporalTimezone, recurringEventsPlugin?: SchedulerRecurringEventsPluginInterface | null): SchedulerProcessedEvent; /** * Updates an event model based on the provided changes and model structure. * Converts internal date objects (`TemporalSupportedObject`) to strings * before applying them to the user's model, because `SchedulerEvent` date * fields are strings. Respects the original string format (instant vs wall-time). */ export declare function getUpdatedEventModelFromChanges(oldModel: TEvent, changes: SchedulerEventUpdatedProperties, eventModelStructure: SchedulerEventModelStructure | undefined, adapter: Adapter, originalBuiltInModel: SchedulerEvent): TEvent; /** * Create an event model from a processed event using the provided model structure. */ export declare function createEventModel(event: SchedulerEventCreationProperties, eventModelStructure: SchedulerEventModelStructure | undefined, adapter: Adapter): { id: string; model: TEvent; }; /** * Converts a resource model to a processed resource using the provided model structure. */ export declare function getProcessedResourceFromModel(resource: TResource, resourceModelStructure: SchedulerResourceModelStructure | undefined): SchedulerResource; /** * Throws if the resolved event id is missing. */ export declare function checkSchedulerEventIdIsValid(id: SchedulerEventId, event: object): void; export declare function buildEventsState(parameters: Pick, 'events' | 'eventModelStructure'>, adapter: Adapter, displayTimezone: TemporalTimezone, recurringEventsPlugin?: SchedulerRecurringEventsPluginInterface | null): Pick, 'eventIdList' | 'eventModelLookup' | 'processedEventLookup' | 'eventModelStructure' | 'eventModelList'>; export declare function buildResourcesState(parameters: Pick, 'resources' | 'resourceModelStructure'>): Pick, 'resourceIdList' | 'processedResourceLookup' | 'resourceModelStructure' | 'resourceChildrenIdLookup'>;