2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
2021-01-27 21:13:33 +00:00
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
|
|
|
declare module 'firstline' {
|
2022-08-30 21:24:04 +00:00
|
|
|
type FirstLineOpts = {
|
2021-01-27 21:13:33 +00:00
|
|
|
encoding?: BufferEncoding;
|
|
|
|
lineEnding?: '\n';
|
2022-08-30 21:24:04 +00:00
|
|
|
};
|
2021-01-27 21:13:33 +00:00
|
|
|
|
|
|
|
export default function firstLine(
|
|
|
|
filePath: string,
|
|
|
|
opts?: FirstLineOpts
|
|
|
|
): Promise<string>;
|
|
|
|
}
|