/** * The request body a client call site sends, when it is written as a literal (change: * add-contract-graph-projection, LiteralPayloadsAreCheckedAgainstRequiredProperties). * * From the call's offset, the argument list is scanned with string, template, and comment * awareness (no parser): `fetch(url, { body: JSON.stringify({ … }) })`, `fetch(url, { body: { … } })`, * and `axios.post|put|patch(url, { … })`, or `JSON.stringify({ … })` there. The body's top-level keys * are listed only when every member is a plain or quoted key or a shorthand; a spread, a computed * key, or any other body is "not literal", never "conforming". */ export type BodyRead = { kind: 'literal'; keys: string[]; } | { kind: 'not-literal'; reason: string; } | { kind: 'absent'; }; /** Whether `offset` lies inside a string, template, or comment of `text` (a call written as text). */ export declare function insideLiteral(text: string, offset: number): boolean; /** * The body of the client call starting at `offset` in `text`. `client` is the extractor's * (`fetch`, `axios`); any other client is not assessed. */ export declare function readCallBody(text: string, offset: number, client: string): BodyRead; //# sourceMappingURL=payload-literal.d.ts.map