import type { PostextConfig, ResourceType } from '../types.js'; /** The document language the built-in strings follow: `config.locale`, else * the hyphenation locale, else English — the resolution the table * continuation strings use too. A blank tag counts as unset. */ export declare function documentLocale(config: PostextConfig | undefined): string; /** Built-in resource types provided when a config does not define its own, * localised to `locale` (defaults to English): figures, tables and videos * (#454), each numbered on its own. All reset their counter on * every `h1` and number as `{h1}.{n}` (e.g. "Figure 2.3"), or `{h1}-{n}` in * Chinese ("图 2-3"), Japanese ("図 2-3") and Arabic ("شكل 2-3"), using * decimal counters. New objects are returned on every call so callers may * freely mutate the result. */ export declare function defaultResourceTypes(locale?: string): ResourceType[]; /** The built-in `video` type (#454) in `locale`: numbered like figures and * tables, in a sequence of its own (Video 1.1, Vídeo 1.1, 视频1-1). */ export declare function defaultVideoResourceType(locale?: string): ResourceType; /** The built-in `example` type (#1172) in `locale`: music examples, numbered * like figures in a sequence of their own (Example 2.1, Ejemplo 2.1, * Notenbeispiel 2.1, 谱例2-1). Not among {@link defaultResourceTypes}: * a book gets it when it has a resource typed `example`. */ export declare function defaultExampleResourceType(locale?: string): ResourceType; /** The resource types a build numbers with: the document's * `resourceTypes`, else the built-in ones. A list saved before videos * existed (#454) has no `video` type: the built-in one is added when a * video resource is typed `video`, so such a book numbers its videos * without editing its types. */ export declare function effectiveResourceTypes(config: PostextConfig | undefined, resources?: ReadonlyArray<{ typeId: string; }>): ResourceType[]; /** Whether `value` is a `resetOn` the numbering knows. */ export declare function isResourceCounterReset(value: unknown): value is ResourceType['resetOn']; /** A resource type a config wrote in part (#916) with the fields it left out * filled in: the built-in type of the same id gives them (`figure`, * `table`, `video` in the document's language), else the built-in * numbering (`{h1}.{n}`, reset on every `h1`, decimal) and the type's own * name for the labels (`name` falls back to the id). The short label * follows a `name` the type gives before the built-in one. A `resetOn` that names * no level becomes `h1` too (`collectConfigWarnings` reports it). */ export declare function completeResourceType(type: Partial & { id: string; }, locale?: string): ResourceType; /** A config's resource types, each one whole (see {@link completeResourceType}). * The same array comes back when none lacks a field, so the memos keyed by * it keep hitting. */ export declare function completeResourceTypes(types: readonly ResourceType[], locale?: string): ResourceType[]; //# sourceMappingURL=resourceTypes.d.ts.map