import { StorageSlot } from '../types'; /** * Get the size on the storage layout for the given variable types. * Keep in mind that this function gets the static size for the slot, and not * the total dynamic size that could change durin execution, like from "bytes" or "string" vars. * More info: https://docs.soliditylang.org/en/latest/internals/layout_in_storage.html */ export declare function getStorageSlotSize(slot: StorageSlot): number; /** * Calculate the sum of the given slot sizes using slot assignment logic. If the * current one does not get into the remaining space from the previous slot, it * should start from a new one. * @param slotsSizes an array of slot size values * @param fillLastSlot true if it should full the size for the last slot, to occupy it completely */ export declare function sumStorageSlotSizes(slotsSizes: number[], fillLastSlot?: boolean): number; /** * Adds the "size", "slot" and "offset" properties to the given set of slots * Taking into account how should they share slots when necessary. */ export declare function hidrateSlotsLayout(slots: StorageSlot[]): StorageSlot[]; //# sourceMappingURL=layout.d.ts.map