import { l as AccessGrant, n as FulfillmentSchema } from "./schema-CIDxLCgB.js";
import { a as StorageAdapter } from "./seams-CsBH_YwI.js";
import { Actor } from "@platform-modules/commerce-orders";
import { Querier, Transaction } from "@platform-modules/db";
//#region src/digital/grant.d.ts
declare function grantDigitalAccess(tx: Transaction<FulfillmentSchema>, input: {
  orderId: string;
  itemId: string;
  ownerKey: string;
  blobKey: string;
}): Promise<AccessGrant>;
//#endregion
//#region src/digital/token.d.ts
declare function issueDownloadToken(q: Querier<FulfillmentSchema>, grantId: string, requester: Actor | {
  guestEmail: string;
}, storage: StorageAdapter): Promise<{
  url: string;
  expiresAt?: Date;
}>;
//#endregion
export { grantDigitalAccess as n, issueDownloadToken as t };