UNPKG

687 BTypeScriptView Raw
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7export declare function extract(contents: string): string;
8
9export declare function parse(docblock: string): Pragmas;
10
11export declare function parseWithComments(docblock: string): {
12 comments: string;
13 pragmas: Pragmas;
14};
15
16declare type Pragmas = Record<string, string | Array<string>>;
17
18declare function print_2({
19 comments,
20 pragmas,
21}: {
22 comments?: string;
23 pragmas?: Pragmas;
24}): string;
25export {print_2 as print};
26
27export declare function strip(contents: string): string;
28
29export {};