/**
 * Cookie signing utilities
 * Based on node-cookie-signature by TJ Holowaychuk
 * Source: https://github.com/tj/node-cookie-signature
 */
/**
 * Sign the given `val` with `secret` using HMAC-SHA256.
 *
 * @param val - The value to sign.
 * @param secret - The secret key to use for signing.
 * @returns The signed value.
 */
export declare function sign(val: string, secret: string): string;
/**
 * Unsign and decode the given `input` with `secret`,
 *
 * @param input - The signed cookie string to unsign.
 * @param secret - The secret key used for signing.
 * @returns The unsigned value or undefined if the signature is invalid.
 */
export declare function unsign(input: string, secret: string): string | undefined;
/**
 * Sign an object by JSON stringifying and base64 encoding it, then signing with secret.
 *
 * @param obj - The object to sign.
 * @param secret - The secret key to use for signing.
 * @returns The signed encoded object.
 */
export declare function signObject(obj: unknown, secret: string): string;
/**
 * Unsign and decode an object that was signed with signObject.
 *
 * @param input - The signed encoded object string to unsign.
 * @param secret - The secret key used for signing.
 * @returns The decoded object or undefined if the signature is invalid.
 */
export declare function unsignObject(input: string, secret: string): unknown;
//# sourceMappingURL=cookie-signer.d.ts.map