import { Effect, Schema as S } from 'effect'; import { type Update } from 'foldkit'; import * as Command from 'foldkit/command'; import { type Hid, Message, type Model, OutMessage, type Showed } from './schema.js'; type UpdateReturn = Update.ReturnWithOutMessage; /** Waits for paint via double-rAF before the enter/leave lifecycle advances. */ export declare const WaitForPaint: Command.CommandDefinitionNoArgs<"WaitForPaint", Effect.Effect<{ readonly _tag: "CompletedWaitForPaint"; }, never, never>>; /** Waits for all CSS animations on the element to settle. Covers both CSS transitions and CSS keyframe animations. */ export declare const WaitForAnimationSettled: Command.CommandDefinitionWithArgs<"WaitForAnimationSettled", { id: S.String; }, Effect.Effect<{ readonly _tag: "EndedAnimation"; }, never, never>>; /** Processes an Animation Message and returns the next Model, optional * Commands, and an optional OutMessage. `Showed` and `Hid` start a transition * but cannot finish one, so direct calls with either Message return a plain * update result. */ export declare function update(model: Model, message: Showed | Hid): Update.Return; export declare function update(model: Model, message: Message): UpdateReturn; /** Creates the standard leave-phase command that waits for CSS animations on the element to settle. Use this when handling the `StartedLeaveAnimating` OutMessage for components that don't need custom leave behavior. */ export declare const defaultLeaveCommand: (model: Model) => Command.Command; export {}; //# sourceMappingURL=update.d.ts.map