import type { AxialCoord, HexCell } from "./hex.ts"; import type { TopologyGridCellState, TopologyGridCellStateKind } from "./renderPipeline.ts"; export type GridCellAnimationStateKind = TopologyGridCellStateKind; export interface GridCellAnimationState extends TopologyGridCellState { } export interface GridActivityCell extends AxialCoord { id: string; edgeFactor?: number; } export interface GridActivitySelectionOptions { cells: GridActivityCell[]; occupied?: AxialCoord[]; previous?: AxialCoord | null; fallback?: GridActivityCell | null; minDistance?: number; minEdgeFactor?: number; random?: () => number; } export interface CenterBloomFrameOptions { cells: HexCell[]; origin: AxialCoord; frame: number; maxRadius: number; trail?: number; wrap?: boolean; } export interface DiagonalSweepFrameOptions { cells: HexCell[]; frame: number; width?: number; trail?: number; wrap?: boolean; } export type NavigationTransitionPhase = "out" | "in"; export type NavigationTransitionDirection = "forward" | "backward"; export interface NavigationFlowFrameOptions { cells: HexCell[]; frame: number; phase: NavigationTransitionPhase; direction?: NavigationTransitionDirection; duration?: number; intensity?: number; trail?: number; axis?: AxialProjectionAxis; reducedMotion?: boolean; } export interface MoodConversionFrameOptions { cells: HexCell[]; progress: number; seed?: string | number; } export interface BreathingFieldFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; baseIntensity?: number; amplitude?: number; spatialScale?: number; speed?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export interface ConstellationFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; minClusterSize?: number; maxClusterSize?: number; interval?: number; attack?: number; hold?: number; release?: number; stagger?: number; minEdgeFactor?: number; minSourceDistance?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export interface OrbitalCurrentFrameOptions { cells: HexCell[]; frame: number; origin?: AxialCoord; seed?: string | number; minRadius?: number; maxRadius?: number; ringStep?: number; signalsPerRing?: number; speed?: number; trail?: number; minEdgeFactor?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export interface EdgeCurrentFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; signals?: number; speed?: number; trail?: number; minEdgeFactor?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export interface RandomTelemetryFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; interval?: number; attack?: number; hold?: number; release?: number; maxConcurrent?: number; minEdgeFactor?: number; minSourceDistance?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export interface SignalDriftFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; drifts?: number; minLength?: number; maxLength?: number; quiet?: number; trail?: number; minEdgeFactor?: number; } export interface NetworkPulseFrameOptions { cells: HexCell[]; frame: number; seed?: string | number; /** @deprecated Use maxConcurrent to describe the scheduler capacity. */ pulses?: number; maxConcurrent?: number; interval?: number; maxRadius?: number; quiet?: number; trail?: number; minEdgeFactor?: number; minSourceDistance?: number; sourceHold?: number; excludedCellIds?: readonly string[] | ReadonlySet; } export type AxialProjectionAxis = "q" | "r" | "q+r"; export interface FaultLineFrameOptions { cells: HexCell[]; progress: number; axis?: AxialProjectionAxis; direction?: 1 | -1; trail?: number; mode?: "incoming" | "outgoing"; } export type HexAxialDirectionIndex = 0 | 1 | 2 | 3 | 4 | 5; export interface SixWayBurstFrameOptions { cells: HexCell[]; origin: AxialCoord; frame: number; maxDistance?: number; trail?: number; directionIndexes?: readonly HexAxialDirectionIndex[]; wrap?: boolean; excludedCellIds?: readonly string[] | ReadonlySet; } export interface NetworkConvergeFrameOptions { cells: HexCell[]; origin: AxialCoord; progress: number; maxDistance?: number; trail?: number; directionIndexes?: readonly HexAxialDirectionIndex[]; excludedCellIds?: readonly string[] | ReadonlySet; } export interface HexIrisFrameOptions { cells: HexCell[]; origin: AxialCoord; frame: number; maxRadius?: number; trail?: number; wrap?: boolean; mode?: "open" | "close"; } export interface RadialSignalEndpoint { index: number; sequenceNumber: number; cell: HexCell; path: AxialCoord[]; inner: boolean; } export interface RadialSignalFrameOptions { cells: HexCell[]; origin: AxialCoord; frame: number; innerRadius?: number; outerRadius?: number; endpointCount?: number; sequence?: "ascending" | "random"; seed?: string | number; synchronizedPulse?: boolean; returnToCenter?: boolean; settle?: boolean; loop?: boolean; centerActivation?: number; construction?: number; endpointSignal?: number; sequenceGap?: number; confirmationPause?: number; synchronizedPulseDuration?: number; returnDuration?: number; centerConfirmation?: number; settleDuration?: number; } export interface ShockwaveFrameOptions { cells: HexCell[]; frame: number; origin?: AxialCoord; seed?: string | number; maxRadius?: number; impactRadius?: number; trail?: number; wrap?: boolean; flash?: number; settle?: number; } export declare const HEX_AXIAL_DIRECTIONS: readonly AxialCoord[]; export declare function toGridCellStateMap(states: GridCellAnimationState[]): { [k: string]: GridCellAnimationState; }; export declare function getCenterBloomFrame(options: CenterBloomFrameOptions): GridCellAnimationState[]; export declare function getAxialRayCells(cells: HexCell[], origin: AxialCoord, direction: AxialCoord, maxDistance: number, excludedCellIds?: readonly string[] | ReadonlySet): HexCell[]; export declare function getSixWayBurstFrame(options: SixWayBurstFrameOptions): GridCellAnimationState[]; export declare function getNetworkConvergeFrame(options: NetworkConvergeFrameOptions): GridCellAnimationState[]; export declare function projectAxialCoordinate(coordinate: AxialCoord, axis?: AxialProjectionAxis): number; export declare function getFaultLineFrame(options: FaultLineFrameOptions): GridCellAnimationState[]; export declare function getNavigationFlowFrame(options: NavigationFlowFrameOptions): GridCellAnimationState[]; export declare function getDiagonalSweepFrame(options: DiagonalSweepFrameOptions): GridCellAnimationState[]; export declare function getMoodConversionFrame(options: MoodConversionFrameOptions): GridCellAnimationState[]; export declare function getBreathingFieldFrame(options: BreathingFieldFrameOptions): GridCellAnimationState[]; export declare function getOrbitalCurrentFrame(options: OrbitalCurrentFrameOptions): GridCellAnimationState[]; export declare function getEdgeCurrentFrame(options: EdgeCurrentFrameOptions): GridCellAnimationState[]; export declare function getRandomTelemetryFrame(options: RandomTelemetryFrameOptions): GridCellAnimationState[]; export declare function getConstellationFrame(options: ConstellationFrameOptions): GridCellAnimationState[]; export declare function getSignalDriftFrame(options: SignalDriftFrameOptions): GridCellAnimationState[]; export declare function getNetworkPulseFrame(options: NetworkPulseFrameOptions): GridCellAnimationState[]; export declare function getHexIrisFrame(options: HexIrisFrameOptions): GridCellAnimationState[]; export declare function getShockwaveFrame(options: ShockwaveFrameOptions): GridCellAnimationState[]; export declare function selectGridActivityCell({ cells, occupied, previous, fallback, minDistance, minEdgeFactor, random, }: GridActivitySelectionOptions): GridActivityCell | null; export declare function getRadialSignalEndpoints(cells: HexCell[], origin: AxialCoord, innerRadius?: number, outerRadius?: number, endpointCount?: number): RadialSignalEndpoint[]; export declare function getRadialSignalFrame(options: RadialSignalFrameOptions): GridCellAnimationState[]; //# sourceMappingURL=gridAnimations.d.ts.map