1 | /// <reference types="node" />
|
2 | import { Options } from '../common-types';
|
3 | import { Type } from './type';
|
4 | /**
|
5 | * Buffer (binary) type
|
6 | */
|
7 | export declare class BufferType implements Type<Buffer> {
|
8 | readonly name = "buffer";
|
9 | isInstance(value: any): boolean;
|
10 | defaultValue(): Buffer;
|
11 | isCoercible(value: any): boolean;
|
12 | coerce(value: any, options?: Options): any;
|
13 | serialize(value: Buffer | null | undefined, options?: Options): string | null | undefined;
|
14 | }
|