UNPKG

560 BTypeScriptView Raw
1import { StatementSchema } from './postprocess-policy-document';
2/**
3 * Merge as many statements as possible to shrink the total policy doc, modifying the input array in place
4 *
5 * We compare and merge all pairs of statements (O(N^2) complexity), opportunistically
6 * merging them. This is not guaranteed to produce the optimal output, but it's probably
7 * Good Enough(tm). If it merges anything, it's at least going to produce a smaller output
8 * than the input.
9 */
10export declare function mergeStatements(statements: StatementSchema[]): StatementSchema[];