import { AccountingType as AccountingTypeProto } from '@devvit/protos/json/devvit/payments/v1alpha/product.js'; /** * A unique identifier for a product. */ export type Sku = string; export declare enum AccountingType { INSTANT = "INSTANT", DURABLE = "DURABLE", CONSUMABLE = "CONSUMABLE", VALID_FOR_1D = "VALID_FOR_1D", VALID_FOR_7D = "VALID_FOR_7D", VALID_FOR_30D = "VALID_FOR_30D", VALID_FOR_1Y = "VALID_FOR_1Y", UNRECOGNIZED = "UNRECOGNIZED" } /** * Maps an AccountingType enum to the corresponding protobuf enum value. */ export declare function mapAccountingTypeToProto(type: AccountingType): AccountingTypeProto; /** * A product that can be sold by Devvit developers * and purchased by Reddit users. */ export type Product = { sku: Sku; price: number; displayName: string; accountingType: AccountingType; description?: string; metadata?: Readonly>; /** * The image configured for this product, or no image if one is not configured. * This is the filename of the file in the assets directory. */ images?: { icon: string; }; }; export declare function newProductId(appVersionId: string, productSku: string): string; //# sourceMappingURL=Product.d.ts.map