/** * Shared GNU ustar tar header details. * * @since 1.0.0 */ import * as Effect from "effect/Effect"; import * as Schema from "effect/Schema"; import * as VariantSchema from "effect/schema/VariantSchema"; /** * @since 1.0.0 * @category Schemas */ export declare const FileTypes: { readonly file: 0; readonly link: 1; readonly symlink: 2; readonly "character-device": 3; readonly "block-device": 4; readonly directory: 5; readonly fifo: 6; readonly "contiguous-file": 7; }; declare const TarHeader_base: VariantSchema.Class, Schema.Int, never, never>; readonly filename: Schema.String; readonly linkName: Schema.withConstructorDefault>; readonly filenamePrefix: Schema.withConstructorDefault>; /** * The underlying raw `st_mode` bits that contain the standard Unix * permissions for this file/directory. */ readonly fileMode: Schema.withConstructorDefault; /** * Data modification time of the file at the time it was archived. It * represents the integer number of seconds since January 1, 1970, * 00:00-UTC. */ readonly mtime: Schema.withConstructorDefault>, Schema.compose, never, never>>, Schema.decodeTo>, Schema.compose, never, never>, never, never>>>; /** * Numeric user ID of the file owner. This is ignored if the operating * system does not support numeric user IDs. */ readonly uid: Schema.withConstructorDefault, Schema.Int, never, never>>>; /** * Numeric group ID of the file owner. This is ignored if the operating * system does not support numeric group IDs. */ readonly gid: Schema.withConstructorDefault, Schema.Int, never, never>>>; /** The name of the file owner, can be at most 32 bytes long. */ readonly owner: Schema.withConstructorDefault>; /** The group that the file owner belongs to, can be at most 32 bytes long. */ readonly group: Schema.withConstructorDefault>; /** The type of file archived. */ readonly type: Schema.withConstructorDefault>; /** Device major number. */ readonly deviceMajorNumber: Schema.withConstructorDefault>; /** Device minor number. */ readonly deviceMinorNumber: Schema.withConstructorDefault>; readonly checksum: VariantSchema.Field<{ readonly full: Schema.FiniteFromString; }>; readonly padding: VariantSchema.Field<{ readonly full: Schema.Literal; }>; readonly ustar: VariantSchema.Field<{ readonly full: Schema.Literals; }>; }, Schema.Struct, Schema.Int, never, never>; readonly filename: Schema.String; readonly linkName: Schema.withConstructorDefault>; readonly filenamePrefix: Schema.withConstructorDefault>; /** * The underlying raw `st_mode` bits that contain the standard Unix * permissions for this file/directory. */ readonly fileMode: Schema.withConstructorDefault; /** * Data modification time of the file at the time it was archived. It * represents the integer number of seconds since January 1, 1970, * 00:00-UTC. */ readonly mtime: Schema.withConstructorDefault>, Schema.compose, never, never>>, Schema.decodeTo>, Schema.compose, never, never>, never, never>>>; /** * Numeric user ID of the file owner. This is ignored if the operating * system does not support numeric user IDs. */ readonly uid: Schema.withConstructorDefault, Schema.Int, never, never>>>; /** * Numeric group ID of the file owner. This is ignored if the operating * system does not support numeric group IDs. */ readonly gid: Schema.withConstructorDefault, Schema.Int, never, never>>>; /** The name of the file owner, can be at most 32 bytes long. */ readonly owner: Schema.withConstructorDefault>; /** The group that the file owner belongs to, can be at most 32 bytes long. */ readonly group: Schema.withConstructorDefault>; /** The type of file archived. */ readonly type: Schema.withConstructorDefault>; /** Device major number. */ readonly deviceMajorNumber: Schema.withConstructorDefault>; /** Device minor number. */ readonly deviceMinorNumber: Schema.withConstructorDefault>; readonly checksum: VariantSchema.Field<{ readonly full: Schema.FiniteFromString; }>; readonly padding: VariantSchema.Field<{ readonly full: Schema.Literal; }>; readonly ustar: VariantSchema.Field<{ readonly full: Schema.Literals; }>; }, true>>> & { readonly full: Schema.Struct<{ readonly fileSize: Schema.decodeTo, Schema.Int, never, never>; readonly filename: Schema.String; readonly linkName: Schema.withConstructorDefault>; readonly filenamePrefix: Schema.withConstructorDefault>; readonly fileMode: Schema.withConstructorDefault; readonly mtime: Schema.withConstructorDefault>, Schema.compose, never, never>>, Schema.decodeTo>, Schema.compose, never, never>, never, never>>>; readonly uid: Schema.withConstructorDefault, Schema.Int, never, never>>>; readonly gid: Schema.withConstructorDefault, Schema.Int, never, never>>>; readonly owner: Schema.withConstructorDefault>; readonly group: Schema.withConstructorDefault>; readonly type: Schema.withConstructorDefault>; readonly deviceMajorNumber: Schema.withConstructorDefault>; readonly deviceMinorNumber: Schema.withConstructorDefault>; readonly checksum: Schema.FiniteFromString; readonly padding: Schema.Literal; readonly ustar: Schema.Literals; }>; readonly "non-full": Schema.Struct<{ readonly fileSize: Schema.decodeTo, Schema.Int, never, never>; readonly filename: Schema.String; readonly linkName: Schema.withConstructorDefault>; readonly filenamePrefix: Schema.withConstructorDefault>; readonly fileMode: Schema.withConstructorDefault; readonly mtime: Schema.withConstructorDefault>, Schema.compose, never, never>>, Schema.decodeTo>, Schema.compose, never, never>, never, never>>>; readonly uid: Schema.withConstructorDefault, Schema.Int, never, never>>>; readonly gid: Schema.withConstructorDefault, Schema.Int, never, never>>>; readonly owner: Schema.withConstructorDefault>; readonly group: Schema.withConstructorDefault>; readonly type: Schema.withConstructorDefault>; readonly deviceMajorNumber: Schema.withConstructorDefault>; readonly deviceMinorNumber: Schema.withConstructorDefault>; }>; }; /** * @since 1.0.0 * @category Schemas */ export declare class TarHeader extends TarHeader_base { /** @since 1.0.0 */ static unpack: (view: Uint8Array) => Effect.Effect, Schema.SchemaError, never>; /** @since 1.0.0 */ pack: () => Effect.Effect; } export {}; //# sourceMappingURL=Header.d.ts.map