import { NewType } from "~/types/NewType"; import { Id } from "~/utils/number/Id"; declare enum webhookId { type = "webhookId" } export declare type WebhookId = NewType; /** * Check if the string value is a WebhookId value */ export declare const is: (s: string) => s is WebhookId; /** * Try to read a WebhookId value from a string */ export declare const fromString: (t: string) => WebhookId | undefined; /** * Create a WebhookId value from an numeric Id */ export declare const fromId: (id: Id) => WebhookId; /** * Converts a WebhookId value to an numeric Id * * Note: A WebhookId value contains a Id value inside, so we can afford this dangerous forced conversion to Id */ export declare const toId: (webhookId: WebhookId) => Id; export {};