export type AnyObject = {
    id: number;
    [key: string]: any;
};
export declare function findAndInsert<T extends AnyObject>(data: T[], key: keyof T, targetId: number, newEntry: T, insertPosition: 'above' | 'below' | 'replace', childrenKey?: string): {
    updatedArray: T[];
} | null;
