/** The flag values of `fs.constants` that the extraction uses. */
export type OpenConstants = {
    O_CREAT: number;
    O_TRUNC: number;
    O_WRONLY: number;
    O_NOFOLLOW?: number;
    UV_FS_O_FILEMAP?: number;
};
/**
 * Make the function that gives the `open` flag for a new file of a
 * given size.
 *
 * With `O_NOFOLLOW`, `open` fails if the path is a symbolic link.
 * Windows does not have it. If `constants` is not set, the flag is
 * `'w'`.
 */
export declare const writeFlags: (constants: OpenConstants | undefined, win32: boolean) => ((size: number) => string | number);
//# sourceMappingURL=write-flag.d.ts.map