import { Signal } from "solid-js"; import { SolidSignal } from "../../../utils/signal.js"; type AnyTable = Record[]; declare namespace createTable { type Extensions = [ { findBy>(match: Match): (T[number] & Match) | undefined; findManyBy>(match: Match): (T[number] & Match)[]; findIndexBy>(match: Match): number; }, { by(match: Partial, value: Value): (T[number] & Value) | undefined; manyBy(match: Partial, value: Value): void; update>(index: number, updates: Updates): (T[number] & Updates) | undefined; updateBy, Updates extends Partial>(match: Match, updates: Updates): (T[number] & Match & Updates) | undefined; updateManyBy, Updates extends Partial>(match: Match, updates: Updates): void; } ]; type Type = SolidSignal.Extended>; type Result = ReturnType>; } declare function createTable(value: T, options?: SolidSignal.Options): Signal & createTable.Extensions; declare namespace createTable { var wrap: >(signal: Sig) => Sig & Extensions ? T : never>; } export default createTable;