/** * Create a UCAN, User Controlled Authorization Networks, JWT. * This JWT can be used for authorization. * * ### Header * * `alg`, Algorithm, the type of signature. * `typ`, Type, the type of this data structure, JWT. * `uav`, UCAN version. * * ### Body * * `aud`, Audience, the ID of who it's intended for. * `exp`, Expiry, unix timestamp of when the jwt is no longer valid. * `iss`, Issuer, the ID of who sent this. * `nbf`, Not Before, unix timestamp of when the jwt becomes valid. * `prf`, Proof, an optional nested token with equal or greater privileges. * `ptc`, Potency, which rights come with the token. * `rsc`, Resource, the involved resource. * */ export declare function build({ audience, issuer, lifetimeInSeconds, proof, resource }: { audience: string; issuer: string; lifetimeInSeconds?: number; proof?: string; resource?: "*" | { [_: string]: string; }; }): Promise; /** * Given a UCAN, lookup the root issuer. * * Throws when given an improperly formatted UCAN. * This could be a nested UCAN (ie. proof). * * @param ucan A UCAN. * @returns The root issuer. */ export declare function rootIssuer(ucan: string, level?: number): string;