export type UseArrayItem = { _: T; set: (item: T) => void; update: (item: Partial) => void; remove: () => void; }; export declare function useArray(items: T[]): { push: (...args: T[]) => void; unshift: (...args: T[]) => void; remove: (comparator: (a: T) => boolean) => void; removeByIndex: (index: number) => void; get(): T[]; set(items: T[]): void; update(updater: (items: T[]) => T[]): void; subscribe: (this: void, run: import("svelte/store").Subscriber[]>, invalidate?: ((value?: UseArrayItem[] | undefined) => void) | undefined) => import("svelte/store").Unsubscriber; };