import { type AtomType } from "./atom"; export type StackAtomType = AtomType & { push(item: T): StackAtomType; pop(): T | undefined; peek(): T | undefined; top(): T | undefined; clear(): StackAtomType; toArray(): T[]; readonly size: number; readonly isEmpty: boolean; }; /** LIFO stack atom. Writes via `set` / `update`. */ export declare function createStackAtom(initial?: T[]): StackAtomType; //# sourceMappingURL=createStackAtom.d.ts.map