/** * `docs_orient`'s answer, said from readings already made. * * Apart from the tool because everything here is a pure function of the files * asked about and what the source index and the recording answered, and a test that wants to * hold the wording should not need a repository, an index and a recording to * get a paragraph. Nothing is counted here: every share and every number is * the addon's, and this only chooses the words and the order. * * The answer is for an agent at a terminal. It is five parts, each one a * narrower reading of the one above it — the files asked about and what each * declares at its top level, which packages they belong to and what crosses their edges, which recorded cases ran * those files, the calls those cases took into and out of them, and the * commands that ask about one name or one file — and a * part that could not be read is left out with one line saying why, so an * absent part is never mistaken for an empty one. */ import type { ExternalOrientation, FileDeclarations, JourneysAround, PackagesAround, RecordedCases } from '@variance-authority/sense'; /** Everything an orientation answer is made of. */ export interface OrientReading { /** The files asked about, in the order asked. */ readonly files: readonly string[]; /** Print every reached declaration entry, rather than the initial three. */ readonly declarations?: boolean; readonly around: PackagesAround; /** What each file the index holds declares at its top level; absent when no index is published. */ readonly declared?: readonly FileDeclarations[]; readonly external?: { readonly index: string; readonly orientation?: ExternalOrientation; /** The complete declaration question, spelled for the caller's CLI or MCP surface. */ readonly declarationsQuestion: string; }; readonly recorded: readonly RecordedCases[]; /** Each suite's journeys; absent when they were not asked for. */ readonly journeys?: readonly JourneysAround[]; /** Why the journeys could not be read, when reading them threw. */ readonly journeysUnread?: string; } /** Below this many uses in a denominator a percentage says less than the count does, so only the count is printed. */ export declare const SHARE_FLOOR = 10; /** A share with the count it is over, or the bare count when the denominator is under the floor. */ export declare function counted(share: number, uses: number, of: number): string; /** A share as a whole percent, and a share too small to round to one said as that. */ export declare function percent(share: number): string; /** Commands that ask about one name or one file this answer printed. */ export declare function followUps(reading: OrientReading): readonly string[]; /** The whole answer. */ export declare function formatOrientation(reading: OrientReading): string; //# sourceMappingURL=orient-format.d.ts.map