import type { Credit, SourceInfo } from "../data-door.ts"; /** * The package's own data, as sources, written from the rows of `NOTICE.md`: `chikyu-pictures` (the whole-Earth pictures of the realistic Earth: day, night, clouds and water) and `chikyu-tiles` (the finer map tiles cut from NASA's bigger maps). * A test holds that none is non-commercial or share-alike, so the package can pass all of it on under the MIT licence. A view's credit line is written from these and from the sources a caller handed in. * * @example * ```ts * import { OWN_SOURCES } from "@johnmorrisdotca/chikyu-earth/door"; * * console.log(OWN_SOURCES.map((source) => `${source.id}: ${source.licence.name}`)); * ``` */ export declare const OWN_SOURCES: readonly SourceInfo[]; /** The rows of `OWN_SOURCES` by id. */ export declare const OWN_BY_ID: ReadonlyMap; /** Marks a source object as made by this package. */ export declare function madeHere(source: T): T; /** True for a source object this package made (`earthTiles`), false for any other. */ export declare const isOwnSource: (source: object) => boolean; /** * The credit of one of the package's own sources, for a page that draws something itself: the elements credit their own pictures and tiles in `credits()`, and a page that draws the Earth from the package's pictures * puts `ownCredit("chikyu-pictures", 1)` in its credit line. * * @param id - `chikyu-pictures` or `chikyu-tiles`. * @param used - How many marks were drawn from it. * @returns The credit, marked as the package's own. * @throws RangeError for an id that is not one of `OWN_SOURCES`. * * @example * ```ts * import { creditLine, ownCredit } from "@johnmorrisdotca/chikyu-earth/door"; * * console.log(creditLine([ownCredit("chikyu-tiles", 6)], "en")); * ``` */ export declare function ownCredit(id: string, used: number): Credit;