UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 496 B
/** * A size in bytes: a number, digits, or digits with a binary suffix, * `KB`/`MB`/`GB` or sandlock's `K`/`M`/`G`, in any case. `field` names the * setting a refusal starts with. * * The grammar is Python's `parse_limit` exactly: ASCII digits, no sign, * separator, fraction or inner space, at most 2**53 - 1 bytes. * * Throws: * Error: the value is not a size. */ export declare function parseLimit(limit: string | number, field: string): number; //# sourceMappingURL=size.d.ts.map