import { ObjectArgument, PCD, StringArgument } from "@pcd/pcd-types"; import type { PODPCDProof } from "@pcd/pod-pcd"; import type { IPODTicketData } from "./schema"; /** * The globally unique type name of the {@link PODTicketPCD}. */ export declare const PODTicketPCDTypeName = "pod-ticket-pcd"; /** * Copied from {@link @pcd/eddsa-ticket-pcd!TicketCategory} in * {@link @pcd/eddsa-ticket-pcd!EdDSATicketPCD}. */ export declare enum TicketCategory { ZuConnect = 0, Devconnect = 1, PcdWorkingGroup = 2, Zuzalu = 3, Generic = 4 } /** * Defines the essential parameters required for creating an {@link PODTicketPCD}. */ export type PODTicketPCDArgs = { /** * The signer's EdDSA private key. This is a 32-byte value used to sign the * message. See {@link @pcd/pod!decodePrivateKey} in `@pcd/pod` if you need * to manipulate or convert this value. */ privateKey: StringArgument; /** * A {@link IPODTicketData} object containing ticket information that is encoded into this PCD. */ ticket: ObjectArgument; /** * A string that uniquely identifies an {@link PODTicketPCD}. If this argument is not specified a random * id will be generated. */ id: StringArgument; }; /** * Defines the claim, consisting of ticket data and the public key of the * signer. */ export interface PODTicketPCDClaim { ticket: IPODTicketData; signerPublicKey: string; } /** * Proofs for POD ticket PCDs are identical to POD PCDs, consisting solely of * a string representation of a signature. */ export type PODTicketPCDProof = PODPCDProof; export declare class PODTicketPCD implements PCD { type: string; claim: PODTicketPCDClaim; proof: PODTicketPCDProof; id: string; /** * The PODTicketPCD consists of a claim about {@link IPODTicketData}, and a * standard {@link PODPCDProof}. */ constructor(id: string, claim: PODTicketPCDClaim, proof: PODTicketPCDProof); } /** * Returns true if {@link pcd} is an {@link PODTicketPCD} or false otherwise. */ export declare function isPODTicketPCD(pcd: PCD): pcd is PODTicketPCD; /** * Throws if {@link pcd} is not a {@link PODTicketPCD} */ export declare function expectIsPODTicketPCD(pcd: PCD): asserts pcd is PODTicketPCD; //# sourceMappingURL=PODTicketPCD.d.ts.map