/opt/canhelp/node_modules/standardwebhooks/dist
Edit: /opt/canhelp/node_modules/standardwebhooks/dist/index.d.ts (808B)
///
declare class ExtendableError extends Error {
constructor(message: any);
}
export declare class WebhookVerificationError extends ExtendableError {
constructor(message: string);
}
export interface WebhookUnbrandedRequiredHeaders {
"webhook-id": string;
"webhook-timestamp": string;
"webhook-signature": string;
}
export interface WebhookOptions {
format?: "raw";
}
export declare class Webhook {
private static prefix;
private readonly key;
constructor(secret: string | Uint8Array, options?: WebhookOptions);
verify(payload: string | Buffer, headers_: WebhookUnbrandedRequiredHeaders | Record
): unknown;
sign(msgId: string, timestamp: Date, payload: string | Buffer): string;
private verifyTimestamp;
}
export {};