export type DayPhase = "night" | "dawn" | "day" | "dusk"; export interface GameClockOptions { /** Starting hour, `0` to `24` (decimals are minutes: `18.5` = 18:30). Default: `8` */ time?: number; /** Starting day number. Default: `1` */ day?: number; /** Game minutes elapsed per real second. Default: `1` (a full day lasts 24 real minutes) */ speed?: number; paused?: boolean; } /** Hours at which each phase starts. */ export declare const DAY_PHASES: { phase: DayPhase; from: number; }[]; export declare function phaseAt(hour: number): DayPhase; export declare function formatClock(hour: number): string; /** * Reactive in-game clock. * `time` is the hour of the day (0-24, decimals are minutes) and wraps to the next `day`. * Call `advance(deltaMs)` every frame, or use `useGameClock()` inside a component. * * @example * ```ts * const clock = createGameClock({ time: 18, speed: 10 }) * clock.label() // "18:00" * clock.phase() // "dusk" * clock.setSpeed(60) // one game hour per real second * ``` */ export declare function createGameClock(options?: GameClockOptions): { time: import('../../../core/dist/index.d.ts').WritableSignal; day: import('../../../core/dist/index.d.ts').WritableSignal; speed: import('../../../core/dist/index.d.ts').WritableSignal; paused: import('../../../core/dist/index.d.ts').WritableSignal; label: import('../../../core/dist/index.d.ts').ComputedSignal; phase: import('../../../core/dist/index.d.ts').ComputedSignal; progress: import('../../../core/dist/index.d.ts').ComputedSignal; advance: (deltaMs: number) => void; setTime: (hour: number) => void; setSpeed: (value: number) => void; pause: () => void; resume: () => void; togglePause: () => void; }; export type GameClock = ReturnType; /** * Creates a game clock advanced automatically by the component ticker. * Must be called during a component setup. */ export declare function useGameClock(options?: GameClockOptions): GameClock; //# sourceMappingURL=clock.d.ts.map