1 | /**
|
2 | * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
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 | */
|
7 | declare type Pragmas = Record<string, string | Array<string>>;
|
8 | export declare function extract(contents: string): string;
|
9 | export declare function strip(contents: string): string;
|
10 | export declare function parse(docblock: string): Pragmas;
|
11 | export declare function parseWithComments(docblock: string): {
|
12 | comments: string;
|
13 | pragmas: Pragmas;
|
14 | };
|
15 | export declare function print({ comments, pragmas, }: {
|
16 | comments?: string;
|
17 | pragmas?: Pragmas;
|
18 | }): string;
|
19 | export {};
|