import { type LayerSourceExclusion, type SourceAdmission } from "@mailwoman/license/admission"; import type { PathBuilderLike } from "path-ts"; import type { RegisterDecisions } from "#source-register/corpus-inputs"; /** * The table mapping each US address source id to the register rows its data comes from. * * It keys Overture datasets as `overture:`, OpenAddresses runs as `openaddresses:` * and NAD as `usgov-nad`, the ids the situs databases and the address layer write. */ export declare function usSitusSourcesPath(): string; /** * The source table's `sources` map. * * @throws When the table doesn't exist, naming it. */ export declare function readUSSitusSources(path?: PathBuilderLike): Promise>>; /** * Admits a source only when every register row the table maps it to permits each * operation the `serve-address-layer` action performs. * * A source whose rows include a refusal is excluded as refused. * One whose rows are otherwise unread is excluded as unread. * * One the table doesn't map, or maps to a row the register lacks, is excluded as having no register row. * * @param register The committed register when absent. * @param table The committed source table when absent. */ export declare function readUSAddressSourceAdmission(register?: RegisterDecisions, table?: Readonly>): Promise; /** * Whether a US address layer build excludes a source whose register terms are unread * or that maps to no register row. * * A source the register refuses is excluded whatever this constant holds. * The build reads it as the default of its `excludeUnreadSources` option. */ export declare const EXCLUDE_UNREAD_SOURCES = true; /** * The sources one state's build reads, and those the register excludes. */ export interface USStateSources { hasNAD: boolean; /** * The admitted Overture datasets other than NAD. */ datasets: string[]; /** * The admitted plan runs for the state, before the cache is checked for them. */ runs: Entry[]; excluded: LayerSourceExclusion[]; /** * Sources admitted with unread terms or no register row, because the build doesn't exclude them. */ admittedUnread: LayerSourceExclusion[]; } /** * Keeps the state's sources that `admission` admits. * * NAD is read as `usgov-nad`, each Overture dataset as `overture:` * and each plan run for the state as `openaddresses:`. * A run the plan marks `skip` is dropped without an exclusion. * * A refused source is always excluded. * A source with unread terms or no register row is excluded when `excludeUnread` holds, * and admitted and listed in `admittedUnread` otherwise. */ export declare function admitUSStateSources(state: string, candidates: { hasNAD: boolean; datasets: readonly string[]; plan: readonly Entry[]; }, admission: SourceAdmission, excludeUnread?: boolean): USStateSources; //# sourceMappingURL=rights.d.ts.map