import type { IterablePubkeys, Policy } from '../types.js'; /** * Allows only the listed pubkeys to post to the relay. All other events are rejected. * @example * ```ts * // Load allowed pubkeys from a text file. * import { readLines } from 'https://deno.land/std/io/mod.ts'; * const pubkeys = readLines(await Deno.open('pubkeys.txt')); * const result = await whitelistPolicy(msg, pubkeys); * ``` */ declare const whitelistPolicy: Policy; export default whitelistPolicy;