importtype{Context}from'./context.ts' exportconst env =<TextendsRecord<string,string>,CextendsContext=Context<{}>>( c:C):T&C['env']=>{// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst global = globalThis asany if( c.runtime==='bun'|| c.runtime==='node'|| c.runtime==='edge-light'|| c.runtime==='lagon'){return global?.process?.env asT}if(c.runtime==='deno'){// eslint-disable-next-line @typescript-eslint/ban-ts-comment// @ts-ignorereturnDeno.env.toObject()}if(c.runtime==='workerd'){return c.env}if(c.runtime==='fastly'){// On Fastly Compute@Edge, you can use the ConfigStore to manage user-defined data.return{}asT}return{}asT}