import * as astro from "astro"; //#region src/astro/middleware/credits.d.ts /** * Credit metering + enforcement middleware (self-contained, child-side). * * A hosted instance meters and enforces its own hosting credits. When * `credits:enforce` is set, each mutating content/media request is charged * `credits:price_per_write_micros` against the cached balance * (`credits:balance_micros`, kept as `-SUM(_emdash_usage.charge_micros)`), and * once the balance reaches zero further mutations are refused with 402. Reads, * login, settings and the billing/top-up endpoints stay open so the owner can * always sign in, see the bill and add credits to lift the block. * * The hosting parent only seeds the price, enforcement flag and initial balance * at provision time and grants top-ups; it does no ongoing metering. Runs after * the auth middleware and never touches non-enforced instances beyond one cheap * options read on write requests. */ declare const onRequest: astro.MiddlewareHandler; //#endregion export { onRequest }; //# sourceMappingURL=credits.d.mts.map