import type { ComponentDict } from "@mailwoman/codex/address/render"; /** * The admin parts a synthesizer has for a row. */ export interface AdminTailParts { locality?: string; region?: string; postcode?: string; country?: string; } /** * A rendered tail and the parts the layout printed, with the caller's values. */ export interface RenderedTail { raw: string; components: ComponentDict; } /** * Options for {@link layoutAdminTail}. */ export interface AdminTailOptions { /** * The synthesizer's seeded draw. * * Given one, a country that records written orders beside its postal layout * (`WRITTEN_LAYOUTS` in `@mailwoman/codex/address/layouts`) renders the mix those orders' shares state. * The draw is taken only for such a country, so every other country's rows keep their stream. * Without one, every row takes the postal layout. */ random?: () => number; } /** * Renders the admin parts through the layout of `country`, or returns `null` * when the codex has no layout for the country or the layout prints none of the parts. */ export declare function layoutAdminTail(country: string, parts: AdminTailParts, opts?: AdminTailOptions): RenderedTail | null; //# sourceMappingURL=tail.d.ts.map