import { DisplayOptions, PCDPackage, SerializedPCD } from "@pcd/pcd-types"; import { POD } from "@pcd/pod"; import { PODTicketPCD, PODTicketPCDArgs, PODTicketPCDClaim, PODTicketPCDProof } from "./PODTicketPCD"; /** * Converts a {@link PODTicketPCD} to a {@link POD}. * @param pcd The POD Ticket PCD to convert. * @returns The POD. */ export declare function ticketToPOD(pcd: PODTicketPCD): POD; /** * Creates a new {@link PODTicketPCD} by generating an {@link PODTicketPCDProof} * and deriving an {@link PODTicketPCDClaim} from the given {@link PODTicketPCDArgs}. */ export declare function prove(args: PODTicketPCDArgs): Promise; /** * Verifies a POD Ticket PCD by checking that its {@link PODTicketPCDClaim} corresponds to * its {@link PODTicketPCDProof}. If they match, the function returns true, otherwise false. * In most cases, verifying the validity of the PCD with this function is not enough. * It may also be necessary to ensure that the parameters of the ticket, such as the * productId and eventId, match the expected values, and that the public key of the * entity that signed the ticket is indeed the authority for that event. */ export declare function verify(pcd: PODTicketPCD): Promise; /** * Serializes a {@link PODTicketPCD}. * @param pcd The POD Ticket PCD to be serialized. * @returns The serialized version of the POD Ticket PCD. */ export declare function serialize(pcd: PODTicketPCD): Promise>; /** * Deserializes a serialized {@link PODTicketPCD}. * @param serialized The serialized PCD to deserialize. * @returns The deserialized version of the POD Ticket PCD. */ export declare function deserialize(serialized: string): Promise; export declare function ticketDisplayName(eventName?: string, ticketName?: string): string; /** * Provides the information about the {@link PODTicketPCD} that will be displayed * to users on Zupass. * @param pcd The POD Ticket PCD instance. * @returns The information to be displayed, specifically `header` and `displayName`. */ export declare function getDisplayOptions(pcd: PODTicketPCD): DisplayOptions; /** * The PCD package of the POD Ticket PCD. It exports an object containing * the code necessary to operate on this PCD data. */ export declare const PODTicketPCDPackage: PCDPackage; //# sourceMappingURL=PODTicketPCDPackage.d.ts.map