import { Errno, Exception } from 'kerium'; import * as primitive from './primitives.js'; import type { TypeLike } from './types.js'; import type { ClassLike } from 'utilium'; export type Size = T extends undefined | null ? 0 : T extends primitive.ValidName ? primitive.Size : number; /** * Gets the size in bytes of a type */ export declare function sizeof(type: T | T[]): Size; /** * Returns the offset (in bytes) of a field in a struct. */ export declare function offsetof(type: object, fieldName: string): number; export declare class MemoryError extends Exception { readonly address: number; constructor(err: keyof typeof Errno, address: number); }