apertaluce 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +139 -2
- package/lib/audio/balance.d.ts +38 -0
- package/lib/audio/balance.js +455 -0
- package/lib/audio/index.d.ts +2 -0
- package/lib/audio/index.js +2 -0
- package/lib/audio/mark.d.ts +83 -0
- package/lib/audio/mark.js +458 -0
- package/lib/audio/resample.d.ts +6 -0
- package/lib/audio/resample.js +77 -0
- package/lib/fft.d.ts +10 -0
- package/lib/fft.js +82 -0
- package/lib/image/fingerprint.d.ts +21 -0
- package/lib/image/fingerprint.js +93 -0
- package/lib/image/index.d.ts +2 -0
- package/lib/image/index.js +2 -0
- package/lib/image/mark.d.ts +163 -0
- package/lib/image/mark.js +1240 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/video/index.d.ts +50 -0
- package/lib/video/index.js +79 -0
- package/package.json +59 -4
package/lib/fft.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Radix-2 complex FFT for the small grids of the marks (one picture tile, one sound frame).
|
|
3
|
+
* Interleaved re/im in a Float64Array; sizes are powers of two.
|
|
4
|
+
*/
|
|
5
|
+
const twiddles = new Map();
|
|
6
|
+
function plan(n) {
|
|
7
|
+
let cached = twiddles.get(n);
|
|
8
|
+
if (cached)
|
|
9
|
+
return cached;
|
|
10
|
+
if (n < 2 || (n & (n - 1)) !== 0)
|
|
11
|
+
throw new Error(`fft: size ${n} is not a power of two`);
|
|
12
|
+
const cos = new Float64Array(n / 2);
|
|
13
|
+
const sin = new Float64Array(n / 2);
|
|
14
|
+
for (let i = 0; i < n / 2; i++) {
|
|
15
|
+
cos[i] = Math.cos((2 * Math.PI * i) / n);
|
|
16
|
+
sin[i] = Math.sin((2 * Math.PI * i) / n);
|
|
17
|
+
}
|
|
18
|
+
const bits = Math.log2(n);
|
|
19
|
+
const rev = new Uint32Array(n);
|
|
20
|
+
for (let i = 0; i < n; i++) {
|
|
21
|
+
let r = 0;
|
|
22
|
+
for (let b = 0; b < bits; b++)
|
|
23
|
+
if (i & (1 << b))
|
|
24
|
+
r |= 1 << (bits - 1 - b);
|
|
25
|
+
rev[i] = r;
|
|
26
|
+
}
|
|
27
|
+
cached = { cos, sin, rev };
|
|
28
|
+
twiddles.set(n, cached);
|
|
29
|
+
return cached;
|
|
30
|
+
}
|
|
31
|
+
/** In-place 1-D transform of `n` complex values starting at `offset` with the given `stride` (in complex units). */
|
|
32
|
+
function fft1d(data, n, offset, stride, inverse, scratch) {
|
|
33
|
+
const { cos, sin, rev } = plan(n);
|
|
34
|
+
for (let i = 0; i < n; i++) {
|
|
35
|
+
const src = 2 * (offset + rev[i] * stride);
|
|
36
|
+
scratch[2 * i] = data[src];
|
|
37
|
+
scratch[2 * i + 1] = data[src + 1];
|
|
38
|
+
}
|
|
39
|
+
for (let size = 2; size <= n; size <<= 1) {
|
|
40
|
+
const half = size >> 1;
|
|
41
|
+
const step = n / size;
|
|
42
|
+
for (let start = 0; start < n; start += size) {
|
|
43
|
+
for (let k = 0; k < half; k++) {
|
|
44
|
+
const wr = cos[k * step];
|
|
45
|
+
const wi = inverse ? sin[k * step] : -sin[k * step];
|
|
46
|
+
const a = 2 * (start + k);
|
|
47
|
+
const b = 2 * (start + k + half);
|
|
48
|
+
const xr = scratch[b] * wr - scratch[b + 1] * wi;
|
|
49
|
+
const xi = scratch[b] * wi + scratch[b + 1] * wr;
|
|
50
|
+
scratch[b] = scratch[a] - xr;
|
|
51
|
+
scratch[b + 1] = scratch[a + 1] - xi;
|
|
52
|
+
scratch[a] = scratch[a] + xr;
|
|
53
|
+
scratch[a + 1] = scratch[a + 1] + xi;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
const scale = inverse ? 1 / n : 1;
|
|
58
|
+
for (let i = 0; i < n; i++) {
|
|
59
|
+
const dst = 2 * (offset + i * stride);
|
|
60
|
+
data[dst] = scratch[2 * i] * scale;
|
|
61
|
+
data[dst + 1] = scratch[2 * i + 1] * scale;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/** In-place 1-D transform of `n` interleaved complex values. */
|
|
65
|
+
export function fft(data, n, inverse = false, scratch = new Float64Array(2 * n)) {
|
|
66
|
+
fft1d(data, n, 0, 1, inverse, scratch);
|
|
67
|
+
}
|
|
68
|
+
/** In-place 2-D transform of an `n`×`n` interleaved complex grid. */
|
|
69
|
+
export function fft2d(data, n, inverse = false) {
|
|
70
|
+
const scratch = new Float64Array(2 * n);
|
|
71
|
+
for (let row = 0; row < n; row++)
|
|
72
|
+
fft1d(data, n, row * n, 1, inverse, scratch);
|
|
73
|
+
for (let col = 0; col < n; col++)
|
|
74
|
+
fft1d(data, n, col, n, inverse, scratch);
|
|
75
|
+
}
|
|
76
|
+
/** Real grid → interleaved complex grid. */
|
|
77
|
+
export function toComplex(real, n) {
|
|
78
|
+
const out = new Float64Array(2 * n * n);
|
|
79
|
+
for (let i = 0; i < n * n; i++)
|
|
80
|
+
out[2 * i] = real[i];
|
|
81
|
+
return out;
|
|
82
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Perceptual fingerprint of a picture: 256 bits from the low frequencies of
|
|
3
|
+
* its luminance (the picture reduced to 64×64, a 16×16 block of its cosine
|
|
4
|
+
* transform, each coefficient compared with their median). Built like PDQ; the
|
|
5
|
+
* bits are not interchangeable with PDQ's own.
|
|
6
|
+
*
|
|
7
|
+
* Copies that keep the whole picture (thumbnails, recompression, colour or
|
|
8
|
+
* brightness changes) land within a few dozen bits; a crop does not, and is
|
|
9
|
+
* the pixel mark's job. Stored with every marked picture and written into its
|
|
10
|
+
* signed statement, so the statement cannot be moved to another picture.
|
|
11
|
+
*/
|
|
12
|
+
import type { RgbaImage } from "./mark.ts";
|
|
13
|
+
/** 64 hex digits, or `null` for a picture too small or too uniform to tell apart. */
|
|
14
|
+
export declare function pictureFingerprint(image: RgbaImage): string | null;
|
|
15
|
+
/** Number of differing bits between two fingerprints (0–256). */
|
|
16
|
+
export declare function fingerprintDistance(a: string, b: string): number;
|
|
17
|
+
/**
|
|
18
|
+
* Two pictures within this many bits are the same picture. Measured in
|
|
19
|
+
* the application this came from, on 477 pictures: 2 of 113,526 pairs of different pictures within it.
|
|
20
|
+
*/
|
|
21
|
+
export declare const FINGERPRINT_MATCH_BITS = 40;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const SIZE = 64;
|
|
2
|
+
const KEPT = 16;
|
|
3
|
+
let basis = null;
|
|
4
|
+
function cosineBasis() {
|
|
5
|
+
if (basis)
|
|
6
|
+
return basis;
|
|
7
|
+
basis = new Float64Array(KEPT * SIZE);
|
|
8
|
+
for (let k = 0; k < KEPT; k++) {
|
|
9
|
+
for (let n = 0; n < SIZE; n++)
|
|
10
|
+
basis[k * SIZE + n] = Math.sqrt(2 / SIZE) * Math.cos((Math.PI / SIZE) * (n + 0.5) * (k + 1));
|
|
11
|
+
}
|
|
12
|
+
return basis;
|
|
13
|
+
}
|
|
14
|
+
/** 64 hex digits, or `null` for a picture too small or too uniform to tell apart. */
|
|
15
|
+
export function pictureFingerprint(image) {
|
|
16
|
+
const { data, width, height } = image;
|
|
17
|
+
if (width < 32 || height < 32)
|
|
18
|
+
return null;
|
|
19
|
+
// Area average onto 64×64; transparent pixels read as white paper.
|
|
20
|
+
const reduced = new Float64Array(SIZE * SIZE);
|
|
21
|
+
const weights = new Float64Array(SIZE * SIZE);
|
|
22
|
+
const colBin = new Int32Array(width);
|
|
23
|
+
for (let x = 0; x < width; x++)
|
|
24
|
+
colBin[x] = Math.min(SIZE - 1, Math.floor((x * SIZE) / width));
|
|
25
|
+
for (let y = 0; y < height; y++) {
|
|
26
|
+
const rowBase = Math.min(SIZE - 1, Math.floor((y * SIZE) / height)) * SIZE;
|
|
27
|
+
for (let x = 0; x < width; x++) {
|
|
28
|
+
const p = 4 * (y * width + x);
|
|
29
|
+
const alpha = data[p + 3] / 255;
|
|
30
|
+
const luma = 0.299 * data[p] + 0.587 * data[p + 1] + 0.114 * data[p + 2];
|
|
31
|
+
const bin = rowBase + colBin[x];
|
|
32
|
+
reduced[bin] += luma * alpha + 255 * (1 - alpha);
|
|
33
|
+
weights[bin]++;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
let min = Infinity;
|
|
37
|
+
let max = -Infinity;
|
|
38
|
+
for (let i = 0; i < reduced.length; i++) {
|
|
39
|
+
reduced[i] = weights[i] ? reduced[i] / weights[i] : 255;
|
|
40
|
+
if (reduced[i] < min)
|
|
41
|
+
min = reduced[i];
|
|
42
|
+
if (reduced[i] > max)
|
|
43
|
+
max = reduced[i];
|
|
44
|
+
}
|
|
45
|
+
// A blank or near-blank picture has no structure to fingerprint.
|
|
46
|
+
if (max - min < 6)
|
|
47
|
+
return null;
|
|
48
|
+
const d = cosineBasis();
|
|
49
|
+
const rows = new Float64Array(KEPT * SIZE);
|
|
50
|
+
for (let k = 0; k < KEPT; k++) {
|
|
51
|
+
for (let x = 0; x < SIZE; x++) {
|
|
52
|
+
let sum = 0;
|
|
53
|
+
for (let y = 0; y < SIZE; y++)
|
|
54
|
+
sum += d[k * SIZE + y] * reduced[y * SIZE + x];
|
|
55
|
+
rows[k * SIZE + x] = sum;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const coefficients = new Float64Array(KEPT * KEPT);
|
|
59
|
+
for (let k = 0; k < KEPT; k++) {
|
|
60
|
+
for (let j = 0; j < KEPT; j++) {
|
|
61
|
+
let sum = 0;
|
|
62
|
+
for (let x = 0; x < SIZE; x++)
|
|
63
|
+
sum += rows[k * SIZE + x] * d[j * SIZE + x];
|
|
64
|
+
coefficients[k * KEPT + j] = sum;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const sorted = Float64Array.from(coefficients).sort();
|
|
68
|
+
const median = (sorted[127] + sorted[128]) / 2;
|
|
69
|
+
let hex = "";
|
|
70
|
+
for (let i = 0; i < 256; i += 4) {
|
|
71
|
+
let nibble = 0;
|
|
72
|
+
for (let b = 0; b < 4; b++)
|
|
73
|
+
if (coefficients[i + b] > median)
|
|
74
|
+
nibble |= 8 >> b;
|
|
75
|
+
hex += nibble.toString(16);
|
|
76
|
+
}
|
|
77
|
+
return hex;
|
|
78
|
+
}
|
|
79
|
+
const BITS = [0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4];
|
|
80
|
+
/** Number of differing bits between two fingerprints (0–256). */
|
|
81
|
+
export function fingerprintDistance(a, b) {
|
|
82
|
+
if (a.length !== 64 || b.length !== 64)
|
|
83
|
+
return 256;
|
|
84
|
+
let distance = 0;
|
|
85
|
+
for (let i = 0; i < 64; i++)
|
|
86
|
+
distance += BITS[Number.parseInt(a[i], 16) ^ Number.parseInt(b[i], 16)];
|
|
87
|
+
return distance;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Two pictures within this many bits are the same picture. Measured in
|
|
91
|
+
* the application this came from, on 477 pictures: 2 of 113,526 pairs of different pictures within it.
|
|
92
|
+
*/
|
|
93
|
+
export const FINGERPRINT_MATCH_BITS = 40;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ALIGNED_CUT, derivePixelKey, detectPixelMark, embedPixelMark, pixelMarkPlane, PIXEL_MARK_SCHEME, SEARCH_CUT, TILES_PER_SHORT_SIDE, type DetectOptions, type EmbedOptions, type PixelKey, type PixelMarkResult, type RgbaImage, } from "./mark.ts";
|
|
2
|
+
export { fingerprintDistance, FINGERPRINT_MATCH_BITS, pictureFingerprint } from "./fingerprint.ts";
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
export interface RgbaImage {
|
|
2
|
+
data: Uint8Array | Uint8ClampedArray;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
/** Bump when the tile layout changes; old keys keep detecting old pictures. */
|
|
7
|
+
export declare const PIXEL_MARK_SCHEME = 2;
|
|
8
|
+
/** Tiles across the picture's shorter side at embed time. */
|
|
9
|
+
export declare const TILES_PER_SHORT_SIDE = 4;
|
|
10
|
+
export interface PixelKey {
|
|
11
|
+
/** The detector's reference: the coarse and the fine tile added up, TILE×TILE. */
|
|
12
|
+
tile: Float32Array;
|
|
13
|
+
/** The coarse and the fine part, each of unit variance (the embedder scales them separately). */
|
|
14
|
+
coarse: Float32Array;
|
|
15
|
+
fine: Float32Array;
|
|
16
|
+
/** Tile frequencies (cycles per tile) of the synchronisation peaks. */
|
|
17
|
+
sync: Array<[number, number]>;
|
|
18
|
+
/** conj(FFT(tile)) restricted to the band, per fold size. */
|
|
19
|
+
spectra: Map<number, Float64Array>;
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
/** Derives the tile of a key. `secret` is any byte string with at least 128 bits of entropy. */
|
|
23
|
+
export declare function derivePixelKey(secret: Uint8Array | string, id?: string): Promise<PixelKey>;
|
|
24
|
+
export interface EmbedOptions {
|
|
25
|
+
/** Multiplies the amplitude; 1 is the tuned default. */
|
|
26
|
+
strength?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Adds the mark to `image` in place. Fully transparent pixels are left alone.
|
|
30
|
+
* Returns the PSNR of the change over the touched pixels.
|
|
31
|
+
*/
|
|
32
|
+
export declare function embedPixelMark(image: RgbaImage, key: PixelKey, options?: EmbedOptions): {
|
|
33
|
+
psnr: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The mark of a `width`×`height` picture as a plane of signed grey levels with
|
|
37
|
+
* unit variance, at the place and scale {@link embedPixelMark} writes it. For
|
|
38
|
+
* pipelines that add the mark themselves (a video encoder blending one plane
|
|
39
|
+
* onto every frame). `tilesPerShortSide` sets the tile size; fewer, larger
|
|
40
|
+
* tiles survive stronger compression and reduction.
|
|
41
|
+
*/
|
|
42
|
+
export declare function pixelMarkPlane(width: number, height: number, key: PixelKey, tilesPerShortSide?: number): Float32Array;
|
|
43
|
+
export interface PixelMarkResult {
|
|
44
|
+
detected: boolean;
|
|
45
|
+
/** Peak of the fold/key correlation in standard deviations of its own surface. */
|
|
46
|
+
score: number;
|
|
47
|
+
/** `aligned`: the copy kept the picture's frame. `search`: found at an unknown scale, offset, rotation or mirroring. */
|
|
48
|
+
mode: "aligned" | "search" | "none";
|
|
49
|
+
/** Tile period in pixels of the suspect (x, y) at the best score. */
|
|
50
|
+
period?: [number, number];
|
|
51
|
+
/** Rotation of the copy in degrees (0–360) and whether it is mirrored, when the search found them. */
|
|
52
|
+
rotation?: number;
|
|
53
|
+
mirrored?: boolean;
|
|
54
|
+
keyId: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Decision cuts in standard deviations of the correlation surface. The aligned
|
|
58
|
+
* test looks at 9 shifts of a handful of hypotheses; the search looks at every
|
|
59
|
+
* shift of the grids the synchronisation peaks propose, so its cut is higher.
|
|
60
|
+
*
|
|
61
|
+
* Measured (docs/MEASURED.md) on 1,083 scores of unmarked pictures (as they are
|
|
62
|
+
* and inside a page): no detection, highest score 6.78, 99 % under 6.0. An
|
|
63
|
+
* exponential fit to the top tenth of those scores puts the chance of an
|
|
64
|
+
* unmarked picture passing 8 at about 1 in ten million per key (an
|
|
65
|
+
* extrapolation, not a count; the two highest scores sit above the fit).
|
|
66
|
+
*/
|
|
67
|
+
export declare const ALIGNED_CUT = 6.5;
|
|
68
|
+
export declare const SEARCH_CUT = 8;
|
|
69
|
+
interface Whitened {
|
|
70
|
+
values: Float32Array;
|
|
71
|
+
width: number;
|
|
72
|
+
height: number;
|
|
73
|
+
}
|
|
74
|
+
/** Luminance, reduced by an integer factor, high-passed and normalised by local contrast. */
|
|
75
|
+
declare function whiten(image: RgbaImage, maxShort: number): Whitened & {
|
|
76
|
+
factor: number;
|
|
77
|
+
};
|
|
78
|
+
type Vec = [number, number];
|
|
79
|
+
interface FoldScratch {
|
|
80
|
+
acc: Float64Array;
|
|
81
|
+
count: Uint32Array;
|
|
82
|
+
grid: Float64Array;
|
|
83
|
+
surface: Float64Array;
|
|
84
|
+
re: Float64Array;
|
|
85
|
+
im: Float64Array;
|
|
86
|
+
re2: Float64Array;
|
|
87
|
+
im2: Float64Array;
|
|
88
|
+
sums: Float64Array;
|
|
89
|
+
energies: Float64Array;
|
|
90
|
+
colBin: Int32Array;
|
|
91
|
+
}
|
|
92
|
+
declare function foldScratch(width: number): FoldScratch;
|
|
93
|
+
export interface DetectOptions {
|
|
94
|
+
/** Skip the scale search (the aligned test only). */
|
|
95
|
+
alignedOnly?: boolean;
|
|
96
|
+
/** Skip the last, slowest pass (the period scan for weak crops). */
|
|
97
|
+
fast?: boolean;
|
|
98
|
+
}
|
|
99
|
+
/** Looks for the mark of `key` in `image`. */
|
|
100
|
+
export declare function detectPixelMark(image: RgbaImage, key: PixelKey, options?: DetectOptions): PixelMarkResult;
|
|
101
|
+
interface PeakSearchResult {
|
|
102
|
+
score: number;
|
|
103
|
+
/** Height of the synchronisation constellation at this grid (sum of its capped peaks). */
|
|
104
|
+
sync?: number;
|
|
105
|
+
period: [number, number];
|
|
106
|
+
rotation: number;
|
|
107
|
+
mirrored: boolean;
|
|
108
|
+
}
|
|
109
|
+
interface Spectrum {
|
|
110
|
+
n: number;
|
|
111
|
+
/** Power of each bin over the mean power at its radius. */
|
|
112
|
+
power: Float32Array;
|
|
113
|
+
/** The same, each bin replaced by the highest of its 3×3 neighbours. */
|
|
114
|
+
peaks: Float32Array;
|
|
115
|
+
}
|
|
116
|
+
/** Fourier power of the whitened picture, zero-padded so a peak spans a few bins, flattened over radius. */
|
|
117
|
+
declare function peakSpectrum(w: Whitened): Spectrum;
|
|
118
|
+
interface GridCandidate {
|
|
119
|
+
score: number;
|
|
120
|
+
/** Tile axes in cycles per pixel of the whitened picture. */
|
|
121
|
+
fu: Vec;
|
|
122
|
+
fv: Vec;
|
|
123
|
+
}
|
|
124
|
+
/** Sum of the capped peak heights where the constellation falls for the tile axes (fu, fv). */
|
|
125
|
+
declare function constellationScore(spectrum: Spectrum, sync: Array<[number, number]>, fu: Vec, fv: Vec): number;
|
|
126
|
+
/**
|
|
127
|
+
* Every turned, scaled and mirrored square grid: the constellation's points are
|
|
128
|
+
* looked up for each rotation over the half-turn (the other half gives the
|
|
129
|
+
* same constellation), both mirrorings and every period.
|
|
130
|
+
*/
|
|
131
|
+
declare function searchSquareGrids(spectrum: Spectrum, key: PixelKey, minPeriod: number, maxPeriod: number): GridCandidate[];
|
|
132
|
+
/**
|
|
133
|
+
* Any grid, also stretched or sheared: two of the strongest points of the
|
|
134
|
+
* spectrum are taken for two points of the constellation, which fixes the grid;
|
|
135
|
+
* the other points must then fall on peaks too.
|
|
136
|
+
*/
|
|
137
|
+
declare function searchAnyGrids(spectrum: Spectrum, key: PixelKey, minPeriod: number, maxPeriod: number): GridCandidate[];
|
|
138
|
+
/**
|
|
139
|
+
* Sharpens a grid on the measured peak positions: each constellation point is
|
|
140
|
+
* located to a fraction of a bin and the two tile axes are fitted to all of
|
|
141
|
+
* them by least squares. Returns null when too few points stand out.
|
|
142
|
+
*/
|
|
143
|
+
declare function fitGrid(spectrum: Spectrum, sync: Array<[number, number]>, start: GridCandidate): GridCandidate | null;
|
|
144
|
+
/** Folds along a candidate grid and correlates with the key, the tile upright and turned by a half-turn. */
|
|
145
|
+
declare function verifyGrid(w: Whitened, key: PixelKey, scratch: FoldScratch, grid: GridCandidate): PeakSearchResult;
|
|
146
|
+
declare function searchByPeaks(w: Whitened & {
|
|
147
|
+
factor: number;
|
|
148
|
+
}, key: PixelKey, scratch: FoldScratch, sharp?: Whitened & {
|
|
149
|
+
factor: number;
|
|
150
|
+
}): PeakSearchResult | null;
|
|
151
|
+
/** For the robustness bench and tests only. */
|
|
152
|
+
export declare const __internals: {
|
|
153
|
+
searchByPeaks: typeof searchByPeaks;
|
|
154
|
+
whiten: typeof whiten;
|
|
155
|
+
peakSpectrum: typeof peakSpectrum;
|
|
156
|
+
searchSquareGrids: typeof searchSquareGrids;
|
|
157
|
+
searchAnyGrids: typeof searchAnyGrids;
|
|
158
|
+
fitGrid: typeof fitGrid;
|
|
159
|
+
verifyGrid: typeof verifyGrid;
|
|
160
|
+
constellationScore: typeof constellationScore;
|
|
161
|
+
foldScratch: typeof foldScratch;
|
|
162
|
+
};
|
|
163
|
+
export {};
|