#!/usr/bin/env node export function documentation({ command }?: { command?: string | undefined; }): string; export class ActivityPubTestingCli { constructor({ tests, }?: { tests?: import("./testCases.js").TestCases | undefined; }); /** * @param {unknown} model - thing to stringify * @param {object} options * @param {string} options.mediaType * @returns {string} stringified model */ stringify(model: unknown, { mediaType }: { mediaType: string; }): string; /** * get a single test * @param {object} options * @param {string} [options.mediaType] - media type that text response should conform to. Defaults to text/plain * @param {string} [options.uuid] * @param {string} [options.url] * @param {string} [options.slug] * @returns {string} - cli output */ getTest({ mediaType, uuid, url, slug, }?: { mediaType?: string | undefined; uuid?: string | undefined; url?: string | undefined; slug?: string | undefined; }): string; /** * get all the tests so they can be browsed * @param {object} options * @param {string} [options.mediaType] * @returns {string} - cli output */ getTests({ mediaType }?: { mediaType?: string | undefined; }): string; /** * test an actor and print the results * i.e. run all the available tests against a single actor selected by the options (e.g. by URL) * @param {object} options * @param {URL} options.id - activitypub actor id (usually a URI) * @param {"json"|"json-seq"|"jq"|"vc"|"application/vc+ld+json"} [options.output] - what kind of output (deafults to concatenated json) * @param {object} [options.input] * @param {string} [options.input.authorization] - authorization header value * @returns {AsyncGenerator} */ testActor({ id, input, output }: { id: URL; output?: "json" | "json-seq" | "jq" | "vc" | "application/vc+ld+json" | undefined; input?: { authorization?: string | undefined; } | undefined; }): AsyncGenerator; #private; } /** * represents value of the '--option' or '-o' flag * e.g. 'activitypub-testing get tests -o json' */ export class OutputOptionValue { /** * @param {string} choice - thing from which to create an OutputOptionValue */ static from(choice: string): OutputOptionValue; /** * @param {string} choice */ constructor(choice: string); choice: string; toMediaType(): "application/json" | "text/plain" | "text/yaml"; } /** * - token from import('node:util').parseArgs */ export type ArgToken = { name: string; value: string; }; //# sourceMappingURL=cli.d.ts.map