import type * as React from 'react'; import type { Adapter } from '@mui/x-scheduler-internals/use-adapter'; import { SchedulerStore } from '@mui/x-scheduler-internals/internals'; import type { EventTimelinePremiumPreferences, EventTimelinePremiumPreset, SchedulerAddDependencyResult, SchedulerDependencyCreation, SchedulerDependencyCreationProperties, SchedulerDependencyId } from "../models/index.js"; import type { EventTimelinePremiumState, EventTimelinePremiumStoreParameters } from "./EventTimelinePremiumStore.types.js"; import { EventTimelinePremiumLazyLoadingPlugin } from "./plugins/EventTimelinePremiumLazyLoadingPlugin.js"; import { SchedulerSchedulingPlugin } from "../internals/plugins/SchedulerSchedulingPlugin.js"; export declare const DEFAULT_PRESETS: EventTimelinePremiumPreset[]; export declare const DEFAULT_PRESET: EventTimelinePremiumPreset; export declare const DEFAULT_SHOULD_EVENT_REQUIRE_RESOURCE = true; export declare const DEFAULT_PREFERENCES: EventTimelinePremiumPreferences; export declare class EventTimelinePremiumStore extends SchedulerStore> { lazyLoading: EventTimelinePremiumLazyLoadingPlugin; scheduling: SchedulerSchedulingPlugin>; constructor(parameters: EventTimelinePremiumStoreParameters, adapter: Adapter); private assertPresetValidity; buildPublicAPI(): { setVisibleDate: ({ visibleDate, event }: { visibleDate: import("@mui/x-scheduler-internals/models").TemporalSupportedObject; event?: React.UIEvent | null; }) => void; goToNextVisibleDate: (event: React.UIEvent) => void; goToPreviousVisibleDate: (event: React.UIEvent) => void; }; /** * Goes to the next visible date span based on the current preset. */ goToNextVisibleDate: (event: React.UIEvent) => void; /** * Goes to the previous visible date span based on the current preset. */ goToPreviousVisibleDate: (event: React.UIEvent) => void; /** * Sets the preset of the timeline. */ setPreset: (preset: EventTimelinePremiumPreset, event: Event) => void; /** * Adds a dependency between two events. * Rejects dependencies referencing an unknown, recurring or read-only event, and * duplicates of an existing pair — see the returned `SchedulerAddDependencyResult`. */ addDependency: (properties: SchedulerDependencyCreationProperties) => SchedulerAddDependencyResult; /** * Deletes a dependency. Returns `false` when the deletion was refused: the id is * unknown, or an endpoint event is read-only. */ deleteDependency: (dependencyId: SchedulerDependencyId) => boolean; /** * Sets the pending create-dependency drag gesture. The gesture only holds ids — * the cursor never enters the state, the provisional arrow follows it through the * DOM — so it changes a handful of times per gesture, not per frame. */ setDependencyCreation: (creation: SchedulerDependencyCreation | null) => void; /** * Selects a dependency, or clears the selection when called with `null`. */ setSelectedDependencyId: (dependencyId: SchedulerDependencyId | null) => void; /** * Deletes the selected dependency and clears the selection, so the pairing cannot * drift apart across the affordances triggering it (delete button, keyboard). */ deleteSelectedDependency: () => void; }