UNPKG

682 BTypeScriptView Raw
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 */
7declare type Pragmas = Record<string, string | Array<string>>;
8export declare function extract(contents: string): string;
9export declare function strip(contents: string): string;
10export declare function parse(docblock: string): Pragmas;
11export declare function parseWithComments(docblock: string): {
12 comments: string;
13 pragmas: Pragmas;
14};
15export declare function print({ comments, pragmas, }: {
16 comments?: string;
17 pragmas?: Pragmas;
18}): string;
19export {};