UNPKG

@skyware/labeler

Version:

A lightweight alternative to Ozone for operating an atproto labeler.

8 lines (7 loc) 451 B
import type { At } from "@atcute/client/lexicons"; import type { FormattedLabel, SignedLabel, UnsignedLabel } from "./types.js"; export declare function formatLabel(label: UnsignedLabel & { sig?: ArrayBuffer | Uint8Array | At.Bytes; }): FormattedLabel; export declare function signLabel(label: UnsignedLabel, signingKey: Uint8Array): SignedLabel; export declare function labelIsSigned<T extends UnsignedLabel>(label: T): label is T & SignedLabel;