win32-def
Version:
win32 definitions for node-ffi
7 lines • 834 B
TypeScript
import type { StructFactoryResult } from '../../lib/types.js';
import { PPRINTER_INFO_1, PPRINTER_INFO_4, PPRINTER_INFO_5, PPRINTER_INFO_8, PPRINTER_INFO_9 } from './struct.index.js';
import type { PRINTER_INFO_LEVEL, PRINTER_INFO_X_Type } from './winspool/helper.types.js';
export type PRINTER_INFO_X_Ptr_Type<X extends PRINTER_INFO_LEVEL> = X extends 1 ? typeof PPRINTER_INFO_1 : X extends 4 ? typeof PPRINTER_INFO_4 : X extends 5 ? typeof PPRINTER_INFO_5 : X extends 8 ? typeof PPRINTER_INFO_8 : X extends 9 ? typeof PPRINTER_INFO_9 : never;
export declare function getPRINTER_INFO_X_Ptr<X extends PRINTER_INFO_LEVEL>(level: X): PRINTER_INFO_X_Ptr_Type<X>;
export declare function PRINTER_INFO_X_Factory<X extends PRINTER_INFO_LEVEL>(level: X): StructFactoryResult<PRINTER_INFO_X_Type<X>>;
//# sourceMappingURL=struct.util.d.ts.map