/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type FieldFormWords } from "@elaraai/east-ui-components"; import { type CalendarCommands, type CalendarPlacement, type CalendarSource } from "./actions.js"; import { type CalendarItem, type CalendarStyles, type CalendarValue } from "./model.js"; /** Each resource kind's rows the rail shows (#1343): what a resource Chooser offers. */ export type CalendarShownResources = CalendarValue["resources"]; /** * The words a Calendar's forms say in the app's own (#1516): a reference field's choice of none in its word for no * resource — `Nobody` where the app says so — as its rows and its Choosers say it. * * @param value - The Calendar * @returns The forms' words */ export declare function useCalendarFieldWords(value: CalendarValue): FieldFormWords; /** * The placement form is one shared FieldForm in both the inspector and popovers. Its resource Chooser offers the * rows the rail shows, and the placement's own resource whatever the rail hides (#1343) — or, for a kind placed on the * paged resource kind, searches that kind by key (#1424, `chooser.tsx`). A placement the event refuses (`onChange` * saying why) goes back to the one it holds, the reason under the field changed. */ export declare function PlacementFields({ source, value, shown, placement, onChange, readOnly }: { source: CalendarSource; value: CalendarValue; shown: CalendarShownResources; placement: CalendarPlacement; onChange: (at: CalendarPlacement) => string | void; readOnly?: boolean; }): import("react/jsx-runtime").JSX.Element; /** An anchored action uses the same Schedule command as a desktop drop. */ export declare function PlacementAction({ label, source, value, shown, day, commands, styles, held }: { label: string; source: CalendarSource; value: CalendarValue; shown: CalendarShownResources; day: Date; commands: CalendarCommands; styles: CalendarStyles; /** Its card is retained — its tab's source read again (#1398, CL8): off until it lands. */ held?: boolean; }): import("react/jsx-runtime").JSX.Element; /** Mutations are explicit and visible in cards and in the inspector. */ export declare function EventActions({ item, value, shown, commands, day, styles }: { item: CalendarItem; value: CalendarValue; shown: CalendarShownResources; commands: CalendarCommands; day: Date; styles: CalendarStyles; }): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=controls.d.ts.map