import { AnyPosition } from './position'; import { Prefix } from './constants'; /** * Given a string, check that it contains a valid prefix * * @param {string} string * * @returns {string} the prefix * * @example * > getPrefix('p.1234') * 'p' */ declare const getPrefix: (string: string) => Prefix; /** * Covert some sequence of 3-letter amino acids to single letter version * * @example * convert3to1('ArgLysLeu') * 'RKL' */ declare const convert3to1: (notation: string) => string; /** * Given an input string, assume it starts with a position range. * Extract and return the position range * @param {string} string */ declare const extractPositions: (prefix: Prefix, string: string) => { input: string; start?: AnyPosition | undefined; end?: AnyPosition | undefined; }; /** * Given a string representing a continuous variant, parses and checks the content * * @param {string} string the variant to be parsed * * @returns {object} the parsed content * * @example * > parseContinuous('p.G12D') * { * "break1End": undefined, * "break1Start": { * "@class": "ProteinPosition", "longRefAA": null, "pos": 12, "prefix": "p", "refAA": "G", * }, * "break2End": undefined, * "break2Start": undefined, * "notationType": ">", * "prefix": "p", * "refSeq": "G", * "truncation": undefined, * "type": "missense mutation", * "untemplatedSeq": "D", * "untemplatedSeqSize": undefined, * } */ declare const parseContinuous: (inputString: any) => { break1Start: any; break1End: any; break2Start: any; break2End: any; refSeq: any; untemplatedSeq: any; untemplatedSeqSize: any; truncation: any; notationType: any; type: string; prefix: Prefix; }; export { convert3to1, extractPositions, getPrefix, parseContinuous, };