import type { TCitationSegment } from "../segment-types.js"; import type { TSegmentInstruction, TSegmentInstructionConditional, TSegmentInstructionSegment, TSegmentInstructionSeparator, TSegmentSource } from "./instruction-types.js"; export type TSegmentRole = TCitationSegment["role"]; export type TSegmentStyle = TCitationSegment["style"]; export declare function separator(text: string): TSegmentInstructionSeparator; export declare function segment(source: TSegmentSource, role: TSegmentRole, style?: TSegmentStyle): TSegmentInstructionSegment; /** A segment showing a string field of the reference. */ export declare function stringField(field: string, role: TSegmentRole, style?: TSegmentStyle): TSegmentInstructionSegment; /** A segment showing a date field of the reference, formatted IEEE style. */ export declare function dateField(field: string, role: TSegmentRole): TSegmentInstructionSegment; /** A segment showing a calendar-date field of the reference, IEEE style. */ export declare function calendarDateField(field: string, role: TSegmentRole): TSegmentInstructionSegment; /** * The year segment: the `year` field as a calendar date, or "(n.d.)" in the * same place when the source is undated, as IEEE's Reference Guide asks. */ export declare function yearOrUndated(): TSegmentInstructionConditional; /** A segment showing fixed text. */ export declare function literal(text: string, role: TSegmentRole): TSegmentInstructionSegment; /** The list of authors that opens most references. */ export declare function authorsLead(field?: string): TSegmentInstructionSegment; /** A single person that opens a reference, in the authors position. */ export declare function singleAuthorLead(field: string): TSegmentInstructionSegment; /** * Emits `then` only when `field` is present (and, with `checkLength`, is a * non-empty array); `otherwise` is emitted exactly when `then` is not. */ export declare function whenPresent(field: string, then: TSegmentInstruction[], options?: { checkLength?: boolean; otherwise?: TSegmentInstruction[]; }): TSegmentInstructionConditional; /** The optional authors list, followed by `trailing` when present. */ export declare function optionalAuthorsLead(trailing: string): TSegmentInstructionConditional; /** "[Online]. Available: " followed by the url as a link. */ export declare function onlineAvailable(): TSegmentInstruction[]; /** "Accessed: " followed by the access date. */ export declare function accessedOn(): TSegmentInstruction[]; /** ", doi: " and the DOI, when the reference has one. */ export declare function doiIfPresent(): TSegmentInstructionConditional; /** ", " and the edition followed by " ed.", when the reference has one. */ export declare function editionIfPresent(): TSegmentInstructionConditional; /** `lead` and the ISBN, when the reference has one. */ export declare function isbnIfPresent(lead: string): TSegmentInstructionConditional; /** ", pp. " and the page range, when the reference has one. */ export declare function pagesIfPresent(): TSegmentInstructionConditional; /** The optional volume, issue and page range of a periodical article. */ export declare function volumeIssuePagesIfPresent(): TSegmentInstructionConditional[]; /** ", ver. " and the version, when the reference has one. */ export declare function versionIfPresent(): TSegmentInstructionConditional; //# sourceMappingURL=fragments.d.ts.map