edacation
Version:
Library and CLI for interacting with Yosys and nextpnr.
11 lines (10 loc) • 783 B
TypeScript
export type ArrayElement<ArrayType extends readonly unknown[]> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;
export declare const encodeText: (input: string) => Uint8Array<ArrayBufferLike>;
export declare const encodeJSON: (input: unknown, pretty?: boolean) => Uint8Array<ArrayBufferLike>;
export declare const decodeText: (input: NodeJS.ArrayBufferView | ArrayBuffer) => string;
export declare const decodeJSON: (input: NodeJS.ArrayBufferView | ArrayBuffer) => unknown;
export declare const FILE_EXTENSIONS_VERILOG: string[];
export declare const FILE_EXTENSIONS_VHDL: string[];
export declare const FILE_EXTENSIONS_HDL: string[];
export declare const FILE_EXTENSIONS_PINCFG: string[];
export declare const formatArguments: (args: string[]) => string[];