/** * return whether the set contains the member. * true when set is identical to member. * This is useful when looking for member in a value that is an item or array of items * (common in JSON-LD) * @template T * @param {T | T[]} set * @param {T} member */ export function includes(set: T | T[], member: T): boolean; /** * Input to this test * @typedef Input * @property {URL} outbox * @property {string} [submission] - JSON to send to outbox * @property {string} [authorization] */ /** * Outcomes of this test * @typedef {"cantTell"|"passed"|"failed"|"inapplicable"} Outcome */ /** * Targets of this Test. Derived from Input. * @typedef Targets * @property {string} submission - request body sent to outbox * @property {Response} outboxPostResponse * @property {URL} outboxPostLocation * @property {Response} outboxPostLocationResponse */ export const simpleNote: { readonly type: "Note"; readonly "@context": readonly ["https://www.w3.org/ns/activitystreams"]; }; export const copiedAudiencePropertyNames: string[]; /** * Applicability * > The applicability describes what parts of the test subject are tested. * --https://www.w3.org/TR/act-rules-format/#applicability */ export const applicability: "\nThis test applies to an ActivityPub Server handling POST requests to an ActivityPub Outbox.\n\nTest Targets\n* outbox: same value as input.outbox\n"; export function run(input: Input): Promise>; export default testCase; /** * Input to this test */ export type Input = { outbox: URL; /** * - JSON to send to outbox */ submission?: string | undefined; authorization?: string | undefined; }; /** * Outcomes of this test */ export type Outcome = "cantTell" | "passed" | "failed" | "inapplicable"; /** * Targets of this Test. Derived from Input. */ export type Targets = { /** * - request body sent to outbox */ submission: string; outboxPostResponse: Response; outboxPostLocation: URL; outboxPostLocationResponse: Response; }; /** * @type {import("../../test-utils").TestCase} */ declare const testCase: import("../../test-utils").TestCase; //# sourceMappingURL=outbox-wraps-object-with-create-checked-using-get-location.d.ts.map