/** * @typedef Inputs * @property {unknown} actor - actor object to test */ /** * @typedef {"passed"|"failed"|"inapplicable"|"cantTell"|"untested"} Outcome * @see https://www.w3.org/TR/EARL10-Schema/#OutcomeValue */ /** * @typedef TestTargetResult - TestResult for a single one of the test targets * @property {Outcome} outcome * @property {string} name * @property {unknown} pointer - pointer to the test target that was tested to produce this result */ /** * @typedef {import('../../test-utils').TestResult} TestResult */ /** * @param {Inputs} inputs * @param {AsyncIterable} inputs * @returns {Promise} */ export function test(inputs: Inputs): Promise; /** * return whether the provided object appears to be an actor object. * check by looking at the 'type' property. * See "How to Determine Whether Input is an Actor Object" at https://bengo.is/activitypub/test-cases/actor-objects-must-have-required-properties/ * @param {object} o * @param {string|string[]} o.type */ export function isActorObject({ type }: { type: string | string[]; }): boolean; /** * @fileoverview js related to a single ActivityPub Test */ export const uuid: "acaacb5f-8f7e-4f28-8d81-c7955070a767"; export const slug: "actor-objects-must-have-inbox-outbox-properties"; export const name: "Actor Objects Must Have Properties `inbox` and `outbox`"; export const description: "This rule checks whether a given Actor Object has the properties inbox and outbox."; export const url: "https://bengo.is/activitypub/test-cases/actor-objects-must-have-inbox-outbox-properties/"; export const markdownUrl: URL; export namespace inputs { namespace actor { let help: string; let required: boolean; let rangeIncludes: string[]; } } /** * @type {import('../../test-utils').TestCaseExample} */ export const passedCase: import('../../test-utils').TestCaseExample; export const passedCases: import("../../test-utils").TestCaseExample[]; /** * @type {import('../../test-utils').TestCaseExample} */ export const failedCase: import('../../test-utils').TestCaseExample; /** * @type {import('../../test-utils').TestCaseExample[]} */ export const failedCases: import('../../test-utils').TestCaseExample[]; /** * @type {import('../../test-utils').TestCaseExample[]} */ export const inapplicableCases: import('../../test-utils').TestCaseExample[]; export const markdown: string; declare const _default: import('../../test-utils').TestCase & { toJSON(): any; }; export default _default; export type Inputs = { /** * - actor object to test */ actor: unknown; }; export type Outcome = "passed" | "failed" | "inapplicable" | "cantTell" | "untested"; /** * - TestResult for a single one of the test targets */ export type TestTargetResult = { outcome: Outcome; name: string; /** * - pointer to the test target that was tested to produce this result */ pointer: unknown; }; export type TestResult = import('../../test-utils').TestResult; //# sourceMappingURL=actor-objects-must-have-inbox-outbox-properties.d.ts.map