/** Escapes `%` as `%25` and `:` as `%3A` inside one trail frame. */ export declare const escapeTrailFrame: (frame: string) => string; /** True for a phase frame that `CoreContext.toArtifacts` seeds. */ export declare const isPhaseFrame: (frame: string) => boolean; /** Joins trail frames with `:`, escaping `%` as `%25` and `:` as `%3A` inside a frame. */ export declare const toTrailString: (frames: readonly string[]) => string; /** * The frames of a trail that address the input document: everything after * the first phase frame, or every frame when there is no phase frame. */ export declare const toDocumentFrames: (frames: readonly string[]) => readonly string[]; /** * The document-relative trail in `StackTrail.toString` form. * * @example * ```typescript * toDocumentString(['trace-1', 'span-1', 'parse', 'paths', '/pets', 'parameters', '0']) * // 'paths:/pets:parameters:0' * ``` */ export declare const toDocumentString: (frames: readonly string[]) => string;